Hi all :)
A my friend asked me if is possible get a name of a label and change the label string with a loop. I have try this code:
rollout Test "test" width:100 height:200
(
label temp1 "hello1"
label temp2 "hello2"
on Test open do
(
for i=1 to 2 do
(
local namelabel = "temp" + i as string
namelabel.text = "changetext" + i as string
)
)
)
createDialog Test
I have always the same error : Unknown property: "text" in "temp1"
How to access the item definition (temp1/temp2) of label then update the value string ? I can do this?
Thanks for any help
By Michele71 · 2015-04-22
barigazy · 2015-04-26