How to Call a variable subroutine or function
Hi friends,
I want to store the name of a function or subroutine in a string and then i will call that subroutine or function based on the name that is stored in that string variable.I have try to do it but it's not working can anyone help me out with this issue.
Re: How to Call a variable subroutine or function
Sure i will help you out with this issue before that may i know which application are you making your Code and if possible did you wrote any code then please provide it.
Re: How to Call a variable subroutine or function
I was try to do this in VBA and following are the code which i am trying out but it's not working
Code:
sub dummy(msgnumber as integer)
msgbox msgnumber
end sub
sub main()
dim SubName as String
SubName = "dummy(1234)"
Call SubName
end sub