Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Prevent error on type mismatch
Message
 
 
To
11/03/2011 16:42:12
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01503417
Message ID:
01503420
Views:
53
This message has been marked as a message which has helped to the initial question of the thread.
>In the following command (fln refers to file name)
>
>if fln = " " 
>fln = "Temp"
>endif
>
>
>i get this error message
>
>Operator/operand type mismatch
>
>I cannot find the point in my programming at which this variable becomes a numeric reference - but nonetheless Is there a command line i can run immediately before to check if fln is text variable, if not then change it to a text variable before the error message comes up.
>
>thanks
>k
if vartype(m.fln) = "C" && our variable is of the character type
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform