Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I shorten code this?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00314481
Message ID:
00314487
Views:
26
hOW ABOUT:
IF "Y"$mytable.my_field1 +mytable.my_field2+mytable.my_field3+mytable.my_field4+mytable.my_field5
do something
endif


>I am looking for a shortcut way to do this.
>Thanks in advance and then some.
>
>IF mytable.my_field1 = "Y" OR ;
> mytable.my_field2 = "Y" OR ;
> mytable.my_field3 = "Y" OR ;
> mytable.my_field4 = "Y" OR ;
> mytable.my_field5 = "Y" OR ;
> ...(do whatever)
>ENDIF
Peter Cortiel
Previous
Reply
Map
View

Click here to load this message in the networking platform