Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Signed integers
Message
 
To
04/03/1998 17:21:22
Gary Foster
Pointsource Consulting LLC
Chanhassen, Minnesota, United States
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00082178
Message ID:
00082586
Views:
40
>
>George,
>I worked out a solution similar to yours and it works fine. I think that it's interesting that the bintoc() and ctobin() functions work differently than VFP's storage of 4 byte integers in a DBF, i.e., the inversions you mentioned above. I have my functions to create 2 and 4 byte strings from numbers and numbers from strings now. Thanks for the input.
>
>Gary Foster

Gary,

As I mentioned, the purpose of BINTOC() and CTOBIN(), were intended for use with keys. Given the the way strings are evaluated (from left to right), the ordering of the results in this fashion makes sense, and can be done somewhat faster in this fashion (not as many comparisons required).
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform