Home

Communication Horizons
established 1986

Home
Contact

 

Knowledgebase Index
About Us
Contact
Legacy Products


Communication Horizons
65 High Ridge Rd. #428
Stamford CT 06905

support

800-480-1604
203-321-1278
fax  286-1056

       

Knowledgebase


>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

 

© Copyright 2001 Communication Horizons LLC.
“NetLib” and “Encryptionizer” are Registered Trademarks of Communication Horizons.
US and international patents pending.
Updated 29 Dec 2001