Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to tell if variable or field
Message
De
11/04/2008 08:49:17
Mike Yearwood
Toronto, Ontario, Canada
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01309758
Message ID:
01309914
Vues:
7
>>I like TYPE() or FIELD() with the alias:
>>
>>TYPE('myalias.myfield')
>>or
>>FIELD('myfield','myalias')
>
>This is the most robust idea I have seen in the thread. There is always the possibility that it is both a field and a memvar.

Absolutely. All the possible ways to do something should be examined, although maybe not as thorougly as this was ;). But then, there should be one safe, fast, robust way and that should be a standard practice.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform