is it possible to call a sub / function in VB if I build its name at runtime?
Let's say I have 3 subs like
Private sub s1() 'or s2() or s3()
'do some stuff
and I have a string var MyStr which could have a value of "s1","s2" or "s3"
How can I call a sub which name is the same as MyStr value
I know I can do something like
If MyStr = "s1" Then
but I don't want this.
I want to call a sub / fuction which name is defined at runtime as a string(or something else).