Artur Sanfins
2008-11-10 14:13:56 UTC
Is it possible ? What is wrong ?
xp=spac(6)
? xp=spac(6)
--> true
xp=' test'
? xp=spac(6)
--> true <<<<< WHY ????
? xp==spac(6)
--> false <<<<< it's ok !
dBASE PLUS 2.61 b2059 (03/28/2007-EN070328)
Default drive: C:
Current work area: 1
Printer/Device:
Language Driver: DBWINUS0 ('ascii' ANSI)
Character Set: WIN1252
DbType: DBASE
Margin: 0
Decimals: 4
Memowidth: 50
Typeahead: 49
Odometer: 100
Refresh: 0
Reprocess: 0
ALTERNATE - OFF CURRENCY - LEFT EXCLUSIVE - OFF LOCK - ON
AUTONULLFIE - OFF CURSOR - ON FEED - ON NEAR -
OFF
AUTOSAVE - ON DBCSSTR - ON FIELDS - OFF PRINTER -
OFF
BELL - ON DELETED - ON FULLPATH - ON SAFETY -
OFF
CARRY - OFF DELIMITERS - OFF HEADINGS - ON SPACE - ON
CATALOG - OFF DESIGN - ON HELP - ON STEP -
OFF
CENTURY - OFF DEVELOPMENT - ON LD19AS13 - OFF TALK -
OFF
CONFIRM - ON ECHO - OFF LDAUTOCHANG - OFF TITLE -
OFF
CONSOLE - ON ENCRYPTION - ON LDCHECK - OFF UNIQUE -
OFF
COVERAGE - OFF ESCAPE - OFF LDCONVERT - ON
CUAENTER - OFF EXACT - OFF LDNOCHANGE - OFF
xp=spac(6)
? xp=spac(6)
--> true
xp=' test'
? xp=spac(6)
--> true <<<<< WHY ????
? xp==spac(6)
--> false <<<<< it's ok !
dBASE PLUS 2.61 b2059 (03/28/2007-EN070328)
Default drive: C:
Current work area: 1
Printer/Device:
Language Driver: DBWINUS0 ('ascii' ANSI)
Character Set: WIN1252
DbType: DBASE
Margin: 0
Decimals: 4
Memowidth: 50
Typeahead: 49
Odometer: 100
Refresh: 0
Reprocess: 0
ALTERNATE - OFF CURRENCY - LEFT EXCLUSIVE - OFF LOCK - ON
AUTONULLFIE - OFF CURSOR - ON FEED - ON NEAR -
OFF
AUTOSAVE - ON DBCSSTR - ON FIELDS - OFF PRINTER -
OFF
BELL - ON DELETED - ON FULLPATH - ON SAFETY -
OFF
CARRY - OFF DELIMITERS - OFF HEADINGS - ON SPACE - ON
CATALOG - OFF DESIGN - ON HELP - ON STEP -
OFF
CENTURY - OFF DEVELOPMENT - ON LD19AS13 - OFF TALK -
OFF
CONFIRM - ON ECHO - OFF LDAUTOCHANG - OFF TITLE -
OFF
CONSOLE - ON ENCRYPTION - ON LDCHECK - OFF UNIQUE -
OFF
COVERAGE - OFF ESCAPE - OFF LDCONVERT - ON
CUAENTER - OFF EXACT - OFF LDNOCHANGE - OFF