Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Type function is not smart enough
Message
 
 
À
24/10/2002 11:21:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00714883
Message ID:
00714929
Vues:
24
>>
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform