Moving cursor to the beginning of a text field after save
Posted: Fri Nov 19, 2010 8:30 pm
Hi, I'm relatively new with RunRev / LiveCode and I was hoping someone had advice for how to move a cursor to the beginning of a text field. Right now I've got several fields set up so that when a user clicks Enter the data will be saved. That all works fine, and then the field is emptied, but I can't seem to put the cursor back at the beginning of the text field for the next record. Can anyone advise on how to accomplish this? I've looked around in the forums and the documentation but still haven't managed to get this working. Thanks for your help!
Script within the field
button script includes:
Script within the field
Code: Select all
on rawKeyDown theKey
--Saves field contents when user hits return
if theKey is 65293 then
send mouseup to button "btnWho"
end if
pass rawKeyDown
end RawKeyDown
Code: Select all
revExecuteSQL gConID,tSQL
put "" into the field "Who" --Doesn't seem to move the cursor back to the top of the multiline field