Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SET CONTROL PROPERTY FROM VARIANT

Status
Not open for further replies.

gismo

Technical User
Jul 24, 2002
35
US
I have a collection that contains control properties such as MyForm.Mycontrol.Text stored as type variant. Is it possible to loop through the collection and set each property to a value. The way I'm doing it now is looping through the collection and within that loop, looping though each form.control.property and if they match setting the value. But I have 15 forms with a lot of controls and it takes a LOOOng time. SO is there a way to just loop through the collection once and evaluate the variant to the property and set the value.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top