returnInfield

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
joyce1440
Posts: 3
Joined: Sun Jun 14, 2015 1:08 am

returnInfield

Post by joyce1440 » Sun Jun 14, 2015 1:19 am

On ReturnInField

do somthing

return

End ReturnInField

I am tabbing through a table field, entering data, and using OnTabkey to check the math, then on the last cell of the line I need to check math PLUS return to the next line.

It does the other stuff, I just can't get it to return.

Thanks for your help. I have searched for the answer and can't figure it out.

SparkOut
Posts: 2947
Joined: Sun Sep 23, 2007 4:58 pm

Re: returnInfield

Post by SparkOut » Sun Jun 14, 2015 8:25 am

this is so close... rather than try to force a return by making a statement "return" you need to

Code: Select all

on returnInField
  --do stuff
  pass returnInField
end returnInField
this will let the returnInField go past your handler and allow the engine to deal with the usual things it does when the enter key is pressed. I am wondering if you wouldn't already have had to do that for the on tabKey handler too though. It certainly should work just the same, so I am surprised if when you tab without passing the tabKey that the cursor doesn't remain in the same cell.

Post Reply