Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to tell if variable or field
Message
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:
01309812
Vues:
6
>>>>>Maybe, I'm not sure right now, but if you said so, it should work.
>>>>>I used Tore's code always WHEN I use with CLIPPER.
>>>>>Now I prefer NOT to use variables with the same name as fields :-)
>>>>
>>>>Good idea, but you may never know... :)
>>>
>>>:-)
>>>Agreed!
>>
>>I was just updating...
>>
>>BTW, on a more serious note I think Sylvain's code is safer, because you don't know what this "unknown" is going to be. What if it's myNonExistantObject.myAnotherNonExistantObject ?
>>
>>On the second thought - it's going to fail as well, we would need two TYPE functions.
>
>Did you know that I am stuck here HOW to check IF the something is a variable or an field with one line?
>I couldn't thing a proper way right now.

llIsField = TYPE('MyUknown') <> 'U' and type("m.myUknown") = "U"

But let's go back to FIELD() function.

Since I'm doing this exercise without VFP it's a bit hard. Besides, I really want to finish the ASP.NET page and SQL Query I was trying to do...

:)
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