>ITEM : N00122
>>DATE: 10/04/96
>>TYPE: Information
>>TITLE: N_CHECK* appears empty when it is not
>>PRODUCT(S):
NetLib (all versions) for Clipper
NetLib (all versions) for FoxPro DOS
NetLib (all versions) for FoxPro Windows
>>PLATFORMS(S):
>>SUMMARY:
N_CHECK* functions (N_CHECKS, N_CHECKU, N_CHECKR, and N_CHECKF)
may incorrectly appear "empty" when using the EMPTY() function.
>>MORE INFORMATION:
N_CHECK* functions return station numbers as ascii strings.
For example, station 1 is CHR(1), station 2 is CHR(2),
and station 32 is CHR(32), which is the same ascii code as a blank
character (' '). Other codes that could appear as "empty" would
be station 8 (tab character) and station 9 (form feed character).
>>RESOLUTION/FIX:
Use LEN()>0 instead of EMPTY().
>>EXAMPLE(S):
* station number 32 among others will return empty
cStation = N_CHECKR()
IF EMPTY(cStation)
* this will work as expected
cStation = N_CHECKR()
IF LEN(cStation) > 0
>>SEE ALSO:
>>COPYRIGHT 1997 Communication Horizons
All rights reserved worldwide.
No distribution without specific consent of publisher.
Knowledgebase
Top Home