
Call (stringvar), can this be done?
I can't think of any direct way this could be done, though you could
approximate it with a select case statement listing all the available
subs...
--
Chris Behrens
Site Builder Network Level 2
http://www.deltav.net
"Outside of a dog, a book is a man's best friend.
Inside of a dog, it's too dark to read."
Quote:
> I want to store the name of a procedure in a memory variable, then call
> the routine using the variable name. If you must know, this is to be
used
> in a STATE MACHINE application, in other words, data driven. The
> application gets its flow by reading an external table into an array,
then
> executing procecures in the order read
> For icounter = 1 to imax
> sProcessName = saProcessName(icounter)
> Call (sProcessName)
> Next icounter
> In Foxpro, it can easily be done with Macro Substitution, and in Clipper
> it can be easily done with Code blocks. How can this be done in VB?
> Thank You !
> Bill Custer