Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Storing Object References
Message
De
26/09/1996 17:53:00
Paul Watson
Mcv Global Systems, Inc.
Pasadena, Californie, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Storing Object References
Divers
Thread ID:
00008632
Message ID:
00008632
Vues:
79
In a VFP form all control object references are held in the Controls() array. I want to build an array that contains references for selected controls on my form. My goal is to be able to clear the ControlSource for selected text box controls and then set them to a saved value later. I can clear them with SetAll(). What I need is an easy way to restore them. I would like to be able to say ThisForm.Controls[nPtr].ControlSource = ThisForm.Controls[nPtr].SavedControl. The problem with that is that my form has multiple pages and it gets messy. I want to create my own array with a hand full of text box controls in it.

My question is how do I store the object's reference into an array?

Thanks!
Paul Watson
MCV Computer Consultants
MCV Global Systems, Inc.
pWatson@PrimeNet.Com
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform