Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
News from VB7. I'm in shock.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00332397
Message ID:
00333634
Vues:
15
> 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
Fil
Voir

Click here to load this message in the networking platform