Even simpler:
Code: Select all
NewMap Vars.i()
;assign values
Vars("kk") = 8
Vars("mbjw") = 13
Vars("drw") = 4
;show selected values
Debug Vars("mbjw") ; =8
Debug Vars("kk") ; =13
Debug Vars("drw"); =4
;reassign a value
Vars("mbjw") = 59
;All vars:
ForEach Vars()
Debug MapKey(Vars()) + " = " + Vars()
Next
Another native way is to use Runtime (maybe more complex in some ways):
Code: Select all
Define one, two, three, half5.d, half3.d
Runtime one, two, three, half5, half3
SetRuntimeInteger("one", 8)
SetRuntimeInteger("two", 2)
SetRuntimeInteger("three", 13)
SetRuntimeDouble("half3", 3.5)
SetRuntimeDouble("half5", 5.25)
Debug GetRuntimeInteger("one") ; = 8
Debug GetRuntimeInteger("three") ; = 13
Debug GetRuntimeInteger("two") ; = 2
Debug GetRuntimeDouble("half3") ; = 3.5
Debug GetRuntimeDouble("half5") ; = 5.25