Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IIF() error
Message
De
16/06/1999 21:40:39
 
 
À
15/06/1999 16:17:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00230164
Message ID:
00230686
Vues:
24
Sylvain answered your question. I just want to add that

empty(lcAVar)

is faster than

len(allt(lcAVar)) = 0

It is also more clear.

Vlad

>What is wrong with my code??
>
>*** Variables:
>mswhere1 = ''
>mswhere2 = ''
>director = "'Brady'"
>
>mswhere3 = iif(len(allt(director)) = 0,; mswhere2,iif(allt(len(mswhere2)) = 0, director,;
> mswhere2 + ' and ' + director))
>
>*******
>I got the error 'Function argument value, type, or count is invalid'
>
>Thanks a lot.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform