Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need a shorcut for this one too...
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00315967
Message ID:
00316476
Views:
27
>I am looking for a shortcut way to do this.
>Thanks in advance and then some.
>
>IF mytable.my_field1 = "Y" AND ;
> mytable.my_field2 = "Y" AND ;
> mytable.my_field3 = "Y" AND ;
> mytable.my_field4 = "Y" AND ;
> mytable.my_field5 = "Y" AND ;
> ...(do whatever)
>ENDIF

In addition to Cindy's suggestion, if these are all single character fields, you could use:

MYTABLE.MY_FIELD1 + MYTABLE.MY_FIELD2 + ... = "YYYY..."

Doug
Previous
Reply
Map
View

Click here to load this message in the networking platform