Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IIF in a SELECT
Message
 
To
09/03/2000 13:36:55
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00343773
Message ID:
00343807
Views:
27
>* This code will execute the function test """ 2 TIMES """????
>select iif(cValue=2,"it will not execute the function",test()+"it will execute it");
> from curTest
>
>close table all
>
>function test()
> = Messagebox("function test")
>return ""
>
>Did somebody know how to correct that error ?
>Thanks in advance !!
>

Stef,

That is not an error. VFP does a test parsing of teh SELECT commadn before it actually runs the command. You are seeing your UDF called for the text and then for the actual processing.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform