` Printed Icetips Article

Icetips Article



Par2: Using + key as an enter key on forms
1998-04-30 -- Geir Hansen
 
1) After opening the Window:
  ALERT(PlusKey)
2) At the alert event for the window:
IF KEYCODE() = PlusKey
  DISABLE(?)
  SELECT(?)
  ENABLE(?)
END

This will move you to the next field, like the TabKey would have done. I found the little
trick (disable/select/enable) to be better than just using SELECT(?+1), The SELECT(?+1)
might move the cursor to a control with the SKIP attribute or to a control on a different
tab on a sheet control.



Printed April 29, 2024, 10:54 am
This article has been viewed/printed 35112 times.