Is there a way to access a Form's object by a method?
-
Not sure how to word the subject. Perhaps this will be clear. Formname.setObject("Object_name").Value = "True" Any thoughts?
-
Not sure how to word the subject. Perhaps this will be clear. Formname.setObject("Object_name").Value = "True" Any thoughts?
-
Define your own public properties for the Form if you want to access data you are storing within an instance of the Form from another class.
Paul Marfleet
I can do that.. But assuming I got into the Forms init method and I defined a function that accesses the objects' by name, I still don't know how to do that. Any advice would be much appreciated. Thanks.
-
I can do that.. But assuming I got into the Forms init method and I defined a function that accesses the objects' by name, I still don't know how to do that. Any advice would be much appreciated. Thanks.
I don't understand what you mean by 'objects'. Are you referring to controls hosted by the form? Or are you talking more generally about accessing the values of class-level object variables based on the name of the variable? If it is the latter, there is no built-in way of doing this. You could easily achieve this behaviour however by storing the objects within a
Hashtable
.Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush