Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Interger field type in multi field index
Message
From
02/08/2003 17:27:13
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00816238
Message ID:
00816241
Views:
22
>Is there a similar function for Interger field type like that of DTOS() for dates?
>
>Yes, I can use Pad() or Str(), but that would make the index larger. Is there a function to convert the integer (4 byte binary) into an equivelent 4 byte string for multi field indexes?

bintoc()
index on CharacterField + bintoc(IntegerField) tag MyIndex
If you use collation sequences, be sure to use SET COLLATE TO MACHINE (the default) in this case, or else.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform