- Code: Select all Expand view
[#include "Set.ch"
FUNCTION MAIN()
? set(_SET_EXACT )
cUserName := "Luis"
If cUserName <> ""
? "Not Empty"
Else
? "Empty"
EndIf
SET EXACT ON
? set(_SET_EXACT )
cUserName := "Luis"
If cUserName <> ""
? "Not Empty"
Else
? "Empty"
EndIf
RETURN NIL
SET EXACT
Determines the mode for character string comparison.
Syntax
SET EXACT on | OFF | ( <lOnOff> )
Arguments
on | OFF | ( <lOnOff> )
on | OFF | ( <lOnOff> )
This option toggles if an exact comparison is performed with character strings. or not.
The default is OFF or .F. (false), i.e. characters are compared up the length of the shorter string.
To change the setting use ON or .T. (true) as parameter.
The parameter can also be specified as a logical expression enclosed in parentheses.