Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to check the type of a parameter
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00508539
Message ID:
00508851
Vues:
26
Jay,

If tcVariable = "5" then the following code will set lcType to N instead of C. It appears that TYPE tries to evaluate uMyVar then returns the type of the result.

Shane

>
>>   lcType = TYPE ("tcVariable")
>>   IF lcType = "C"
>>      IF TYPE (tcVariable) <> "U"   &&  a variable could refer to any type
>>           lcType = TYPE (tcVariable) &&  return the variable's variable type.
>>      ENDIF
>>   ENDIF
>
Shane Murdoch
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform