
Executing a function() during runtime
Quote:
> Call {function name}
> >Hello,
> >I once saw a VB sample executing a function or a sub
> >in runtime. I was wondering how it is done because
> >I am working on a program which allows the user
> >to key in a command (function) into a textbox and
> >gets the output in separate textbox. Somewhat like
> >a console program.
> >Thanks in advance.
> >Kian Yang
I don't think you understood the question. A case statement is going to
be needed since the functions will be called based on a string value.
Select Case (strFunctionName)
Case "Function1": Call Function1()
Case "Function2": Call Function2()
Case "Function3": Call Function3()
End Select
There's no other way to do it since the string commands you enter, even
though they are function names, are obviously not compiled.
Boden Larson
SGM Biotech, Inc.
(406) 582-0457