Page 1 of 1

returnInfield

Posted: Sun Jun 14, 2015 1:19 am
by joyce1440
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.

Re: returnInfield

Posted: Sun Jun 14, 2015 8:25 am
by SparkOut
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.