>> The text box objects already exist on the form. I want to store references to them in the array ,,,
Oops... no sooner did I post that I realized that I misread the question (even though you said it twice!).
If you know the names of those object references (i.e., textboxes) that you want to put into the array, just do something like:
cTemp="ThisForm.SomeTextbox"
aControl(i)=Eval(cTemp) --> puts the reference into the array
If there are a bunch of references, a quick and dirty way, for example, within the form's init:
#Define CONTROLREFS "ThisForm.SomeTextBox/ThisForm.AnotherTextBox/ThisForm.Page1.YetAnotherTextBox" (and on and on)
Then, in your code:
cControlsToStore= ChrTran(CONTROLREFS, "/", chr(13))
For i=1 to MemLine(cControlsToStore)
aControl(i)=Eval(MLine(cControlsToStore,i))
EndFor
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only