In the KeyPress event of the textbox in Column 3
LPARAMETERS nKeyCode, nShiftAltCtrl
IF nKeyCode=13
thisform.pageframe1.page1.text16.SetFocus
RETURN
ENDIF
That should work
Joerg Arand MD
assistant medical director
Neonatology
Children's Hospital
University Tuebingen
Calwer Str. 7
D-72076 Tuebingen
Tel.+49-(0)7071-2982211
Tel.+49-(0)7071-2980895 (office)
E-mail:Joerg.Arand(AT)med.uni-tuebingen.de
>>> Sytze de Boer <[email protected]> 19.11.2009 00:36 >>>
Hi Folk
Can someone help me with this ?
I have a form with 20 odd text boxes
There is also a grid with 9 rows/3 columns
In the Grid, in the valid of 3rd column is the following
IF LASTKEY()=13
IF level=9 AND UPPER(varread())="MARGIN"
&& margin is the 3rd column
WAIT WINDOW NOWAIT 'It should flick out at this point'
RETURN thisform.pageframe1.page1.text16 && this avoids error
Cannot call setfocus........
else
KEYBOARD '{DNARROW}'
endif
ENDIF
Why does it not exit the grid and set focus to text16 ?
--
Regards
Sytze de Boer
Kiss Systems
Hamilton, NZ
Ph: 64-7-8391670, Mob:64 21 937611
URL: www.kiss.co.nz
[excessive quoting removed by server]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.