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