> You know what would really be nice? A way of doing something similiar in VFP. Maybe something like: Form..Object.Property where the ".." tells VFP to figure it out for itself. It would help do away with the problems of indirect referencing - you could move them anywhere in the form and the code wouldn't break.
Actually, CB6 has a method of doing this. Each control has a property 'registryname' (which has nothing to do with the registry). When the object has a registry name at startup it registers itself with the form.
To reference it you do something like...
ThisForm.Registry('TheNameYouGaveIt').Value = 'ABC'
BOb
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement