Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Including a logical field into an index
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00275876
Message ID:
00275901
Views:
18
>>Convert the logical to character with the IIF() function:
>>
>>index on ... + iif(MyTable.LogicalField, 'T', 'F') tag mytag
>
>
>Duhh....I should have figured that one out...Someday I will have this language mastered :-)
>
>Thanks,
>Paul

Or to have Trues before falses,


iif(MyTable.LogicalField, '0', '1') tag mytag
Erik Moore
Clientelligence
Previous
Reply
Map
View

Click here to load this message in the networking platform