Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I shortcut this code?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00316384
Message ID:
00316393
Vues:
17
>I have some fields in a table. I want to check this bunch of fields to see if they are all EMPTY(). What's the best way to do it? Maybe I need to use EMPTY() instead? But I was comparing one after another and it was not very efficient. Thanks in advance.
>
>IF INLIST(EMPTY(something here?),ADDLINE1,ADDLINE2,CITYADDR, ;
>STATEADDR,ZIP,HPHONE,WPHONE,WEXT,CPHONE,PAGER,FPHONE)
>...(condition if .T.)
>...
>ELSE
>...(condition if .F.)
>ENDIF

If they are all character, concatenate them together and check for empty.

EMPTY(addline1+addline2+cityaddr+stateaddr+...)
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform