Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Object.Tag purpose
Message
 
 
À
21/09/2005 13:02:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01051560
Message ID:
01053681
Vues:
15
>>>>Hello,
>>>>
>>>>What is the use of Object.Tag?
>>>
>>>You can keep any data there (that data must be Char) From Help for TAG property:
>>>Stores any extra data needed for your program. Available at design time and run time.
>>
>>Yes, I understand that...
>>
>>But, I just found out that mostly every object has such property, but I would like to ask UT users where they used this property. Is it usefull? Maybe there is some function getObjectByTag?
>
>The TAG property is generally legacy to the time before we had AddProperty method and function. Along with the Comment property, it was the only property we could rely on to not be affected by VFP during runtime.

It is indeed legacy, but its legacy is VB. <g>

In the very earliest alphas the object model was very heavily based on VB's and Tag and Comment were two that came along for the ride. We had long & rambling discussions like "do we really need both GotFocus() and When()?" (We do!)

Tag and Comment just sorta stuck around unnoticed.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform