Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Type function is not smart enough
Message
 
 
To
24/10/2002 11:21:04
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00714883
Message ID:
00714929
Views:
23
>>
>>So, what would you suggest me to do? I didn't want to use vartype, because it may throw an error, if the expression is incorrect...
>>
>>Thanks in advance.
>
>
>m.VarToCheck = trimzero('00034')
>TYPE('m.VarToCheck')
>
>
>
>Yes I know, It isn't the great and innovate idea you are looking for... but it works.
>
>Regards,
>José Luis.

I have a filed content, so my VarToCheck would be "trimzero(StNumExt)" (e.g. in quotes).

E.g.
theFld=thisform.edtReplaceFld.value && "trimzero(StNumExt)"
theType=type(m.theFld)
&& Returns U

I dont' think, I can use & or evaluate function here...
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