08-15-2000, 12:18 PM
Hi. I'm looking for a way to convert a string that holds the name of an object into a reference to that object. For instance, I have a string "objQueueMenu", but I want to use it to access the object objQueueMenu. Any ideas?
08-15-2000, 04:12 PM
Well, somehow I can say I am not just a beginner but my code is not yet perfect anyway (just like my english)...
...Download my attachment I tried it and it works fine, it is simple, just call GetControlFromName function which wants two parameters, respectively the name of the form containing the control and the string containing the control name... the function returns a reference to the control so....well just read the attachment, it's smaller and simplier than this reply!!! :)
Oooops...before I forget....it doesn't check for Upper/Lowercase...so Label1 is not the same as label1 okay? Add such a check if u want....... :)
I Hope I Helped U See YA...
10-17-2002, 02:40 AM
Nice thread, only I canīt find the attachment that you mention.