Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to make an index
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01341632
Message ID:
01341645
Views:
8
>>Hi,
>>
>>that is not the only problem also the 1st part < INDEX ON IIF(empty(Field2, Field1,Field2) TAG myTag> throws an error. I am beginnen to think I am looking for the impossible. Maybe I should add an other field, just to simplify the indexing, this field could be filled with a condition with aid of a scan, only I am still not sure how to do.
>>
>>Regards,
>>
>>Koen
>
>In this one you're now missing parens :)
>
>INDEX ON IIF(empty(Field2, Field1,Field2) TAG myTag
>
>should be
>
>INDEX ON IIF(empty(Field2), Field1,Field2) TAG myTag
>
>Are you saying that my expression still not working after you corrected my first typo?

E.g.
INDEX ON IIF(empty(Field2), Field1,Field2) + Field1 + IIF(empty(field2), '1' + Field3, '2' +PADR(DTOS(CTOD(Field3)),10)) TAG myTag
instead of 10 use the length of Field3.

LEN(field1) should be = LEN(field2) for this to work.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform