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