Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to make an index
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01341632
Message ID:
01341645
Vues:
9
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform