Delete content of a Text entry field and recover it in next
Posted: Tue Sep 15, 2009 11:13 pm
Hi All,
I am new in Revolution and kind of struggling with very basic stuff.
I am trying to program a very basic application. In the first card the user has to type his/her name and press Enter.
The enter button takes him/her to the next card, in which (s)he is welcome by name.
My problems are:
1. I am not able to recover the user's name in the next card.
2. I am not able to delete the content of the text entry field, so when I reopen the stack I always find the last name I wrote.
My script looks like this:
on mouseEnter
set lockcursor to true
set cursor to hand
end mouseEnter
on mouseLeave
set lockcursor to false
set cursor to arrow
end mouseLeave
on mouseDown theButton --go to next page--
if theButton is 1 then go to card "2"
put "Hello," & field "name" into field "welcome"
set the visible of field "welcome" to true
end mouseDown
Any suggestions?
I am new in Revolution and kind of struggling with very basic stuff.
I am trying to program a very basic application. In the first card the user has to type his/her name and press Enter.
The enter button takes him/her to the next card, in which (s)he is welcome by name.
My problems are:
1. I am not able to recover the user's name in the next card.
2. I am not able to delete the content of the text entry field, so when I reopen the stack I always find the last name I wrote.
My script looks like this:
on mouseEnter
set lockcursor to true
set cursor to hand
end mouseEnter
on mouseLeave
set lockcursor to false
set cursor to arrow
end mouseLeave
on mouseDown theButton --go to next page--
if theButton is 1 then go to card "2"
put "Hello," & field "name" into field "welcome"
set the visible of field "welcome" to true
end mouseDown
Any suggestions?