The "eval" command does not exist in VB. I wish to do something that is possible in other languages: For x As Integer = 1 to 10 Dim eval("obj" & x) As myObject eval("obj" & x).setting = value Next
An immediate answer is, "Create an array of objects!". Problem: the "myObject" throws events that I need to handle. If I create an array of "myObject"s, the objects can no longer throw events... even if they did, how would you handle them? Sub Handle_myObject() Handles ... ? End Sub
What would it handle? :confused: I am stuck on this one. Any help is appreciated. -- modified at 15:09 Thursday 2nd March, 2006
S
swingheim
@swingheim
Posts
-
Dynamic Object Names ... how ?