Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
[b]puts[/b] [teal][[/teal][b]set[/b] [green][i]"var_$select"[/i][/green][teal]][/teal]
No.erezb84 said:is this syntax works for array too?
set var_value [set "var_$select"]
array_$select($value)
Sad, but that is not supported.mikrom said:I would try to use a hash which elements are hashes.
array [b]set[/b] dial [teal]{[/teal] [teal]}[/teal]
[b]set[/b] label [purple]0[/purple]
[b]foreach[/b] vertical [teal]{[/teal] top center bottom [teal]}[/teal] [teal]{[/teal]
[b]foreach[/b] horizontal [teal]{[/teal] left center right [teal]}[/teal] [teal]{[/teal]
[b]set[/b] dial[teal]([/teal][navy]$vertical[/navy][teal],[/teal][navy]$horizontal[/navy][teal])[/teal] [teal][[/teal][b]incr[/b] label[teal]][/teal]
[teal]}[/teal]
[teal]}[/teal]
[b]puts[/b] [green][i]"The center right button on the dial is $dial(center,right)"[/i][/green]
[b]puts[/b] [green][i]"Buttons in the dial's left column are :"[/i][/green]
[b]foreach[/b] [teal]{[/teal]key label[teal]}[/teal] [teal][[/teal]array get dial [teal]{[/teal][teal]*,[/teal]left[teal]}[/teal][teal]][/teal] [teal]{[/teal] [b]puts[/b] [green][i]" - $label ( $key )"[/i][/green] [teal]}[/teal]