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 : N00069

>>DATE: 06/30/96

>>TYPE: Information

>>TITLE: N_B_* functions and Bindery User IDs

>>PRODUCT(S):
NetLib (all versions) for Clipper
NetLib (all versions) for FoxPro DOS
NetLib (all versions) for FoxPro Windows

>>PLATFORMS(S):
NetWare (all versions)

>>SUMMARY:
Bindery Object names that begin with a numeric digit (0-9) conflict with Bindery User ID numbers.

>>MORE INFORMATION:
Most of the NetLib N_B_* functions (N_B_PRWRITE, N_B_PRREAD, etc) accept an Object as either an Object name or as a Bindery User ID. If the string starts with a numeric character (0-9), NetLib interprets it as a hexadecimal Bindery User ID. If the string starts with a non-numeric character, then NetLib interprets it as an Object name.

The problem arises when a hexadecimal Bindery User ID begins with 'A'-'F'. NetLib will assume that it refers to a Bindery Object name.

>>RESOLUTION/FIX:
To force NetLib to treat a string as a hexadecimal number, prefix it with '0'.

>>EXAMPLE(S):
* User JONES has hexadecimal User ID "A12B".
* Next line incorrectly treats it as a name.
cFullname = N_B_PRREAD("A12B",1,"IDENTIFICATION")
* Next line correctly treats it as a number.
cFullname = N_B_PRREAD("0A12B",1,"IDENTIFICATION")

>>SEE ALSO: N00066

>>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