DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

subscript execution with a variable name

Is the a way to run a subscript where the name is a dynamic variable? for example:

SubtoRun = T1 (T1 is a diadem text variable which is the name of the sub to be run)
Call SubtoRun
0 Kudos
Message 1 of 2
(3,072 Views)
Hello Bill

You can use the Execute command, e.g.

sub test
msgbox "hallo"
end sub

t1="test"
execute t1

Hope this helps!

Winfried
0 Kudos
Message 2 of 2
(3,068 Views)