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
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
button script includes:
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