Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FOR Clause
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Miscellaneous
Thread ID:
00465240
Message ID:
00465247
Views:
14
>Hi Everyone:
> I was wondering if it is possible to include For statement in a immediate If statement. For example IIF(nCnt = 1,For citem.des1=creport.des,2,3)
>Thanks

I'm not sure what you are trying to do. Are you trying to build a dynamic FOR clause for one of the commands that accepts FOR clauses. Is so, my guess would be it would not work. The IIF() would be evaluated for the first record and the command would use that for the rest of the operation.

If you could provide some more detail of your goal, maybe there is another way to go about it.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform