Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TYPE variable error
Message
 
To
24/01/2009 09:53:31
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01376717
Message ID:
01376718
Views:
9
This message has been marked as the solution to the initial question of the thread.
Jay,

The proper syntax is
		IF TYPE('lcExistingValue') = 'C' AND !EMPTY(lcExistingValue)
HTH

-Dan

>Getting "Function argument value, type, or count is invalid" error on this line if lcExistingValue is .F. when getting here. I still can't figure out what is the best way to check for the existence of a variable and whether it has a value.
>
>		IF TYPE(lcExistingValue) = 'C' AND !EMPTY(lcExistingValue)
>
Previous
Reply
Map
View

Click here to load this message in the networking platform