What's the solution to give unique names to objects created at runtime, so I can easily refer to them?
I have a Button with the following script, but it doesn't work:
Code: Select all
global POV, POVNum
POVNum = 1
POV = "POV" + POVNum
on mouseUp
move button addnew relative 0,30
create field "NewField"
set the name of field "NewField" to POV
put 1 + POVNum into POVNum
end mouseUp
Can anybody help me?
Thanks.