I want to store them in an array, which will make editing them easier.
This code works fine in the Message Box.
It creates a keyed entry into the array, SQL.
Code: Select all
put "SELECT * FROM control" into SQL["select-all"]
When I take the same code and put it in a button like this:
Code: Select all
on MouseUp
put field actualSQL into SQL[field SQLkey]
end MouseUp
So then I try:
Code: Select all
put actualSQL into act
put SQLkey into ky
put act into SQL[ky]
"value of actualSQL" or "text of SQLkey" but these don't work.
I've looked in the User Guide, the Dictionary and through Array Lessons.
What am I missing?