John A. McGraw
New Member
- Joined
- Nov 25, 2002
- Messages
- 7
Is there a way to store the name of a function or subroutine in a string and then call that subroutine based on the name that is stored in that string variable? For example, even though the folowing routine doesn't actually work, I think it will give you an idea of what I want to do:
Is it possible to do this in some way?
Thanks.
Code:
sub dummy(msgnumber as integer)
msgbox msgnumber
end sub
sub main()
dim SubName as String
SubName = "dummy(1234)"
Call SubName
end sub
Is it possible to do this in some way?
Thanks.