Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I shortcut this code?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00316384
Message ID:
00316393
Views:
18
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform