I read strings from a file. These strings are procedure names.
How do I get VB6 to call the function that is represented by the string I just read from the file?
Any ideas appreciated.
Printable View
I read strings from a file. These strings are procedure names.
How do I get VB6 to call the function that is represented by the string I just read from the file?
Any ideas appreciated.
I had a problem similar to this and I had the following solution:
1)
Make your little script language and with a big Select Case switch trough your functions.
(That's what I finally did)
2)
Make a dll in C and then use the API function to execute a function from a dll ;)
------------------
Fox
[email protected]
http://gigotz.tsx.org
...
The truth is somewhere out there...
Thanks but C is out of the question and I was really hoping to avoid the case statement, it's not really dynamic and means that the code has to be added to if you want to expand.
I appreciate the response.
check out the VB 6 function CallByName
Haven't used it, but maybe it does the trick for you.
Thanks alot, that did the job. I wasn't expecting to get that going till tomorrow.
I answered in the other forum in case you still need it:
http://www.vb-world.net/ubb/Forum3/HTML/002581.html
I saw that, thanks very much.
I can't know everything ;)
------------------
Fox
[email protected]
http://gigotz.tsx.org
...
Every program can be reduced to one instruction which doesn't work.