Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simple question about Valid method
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01006352
Message ID:
01006355
Views:
26
>Hi everybody,
>
>Valid method can return either logical or numerical. How can I test
>
>if dodefault()
>
>Thanks in advance.
>
>I don't like
>
>if inlist( transform(dodefaut(),'.f.','0')) && failure

I can do it
#define lFailure iif(vartype(m.luReturn)="N", m.luReturn = 0, not m.luReturn)

but I don't like it either...

Is there a third option?
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform