execute statement

  • Thread starter Thread starter TJS
  • Start date Start date
T

TJS

trying to use code below to create dynamic variables but no success, what am
I missing ?

--------------------------
for i = 0 to 2
dim vString as string = "Dim submenu" & Cstr(i) & " As New
skmMenu.MenuItem(" & tab.TabName & ", """")"
EXECUTE (vString)
next
 
* "TJS said:
trying to use code below to create dynamic variables but no success, what am
I missing ?

Use a hashtable, variable name as key, value as value... Or, if you
don't need arbitraty names, use an array or an arraylist.
 
Back
Top