Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Storing Object References
Message
From
26/09/1996 17:53:00
Paul Watson
Mcv Global Systems, Inc.
Pasadena, California, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Storing Object References
Miscellaneous
Thread ID:
00008632
Message ID:
00008632
Views:
81
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
Next
Reply
Map
View

Click here to load this message in the networking platform