I think you should try this:
last column of the grid, text1 LOSTFOCUS
this.parent.parent.column5.setfocus
don't use the valid event
You could use, as an alternative, the KEYPRESS EVENT of the textbox, thus
if nKeyCode = 13
this.parent.parent.column5.setfocus
endif
Rafael copquin
El 30/08/2010 18:11, Eurico Chagas Filho escribió:
> Hi S.
>
> I have a button that inserts a new row, do u insert a new row ?
> The last column is tricky, it will go to the next row, if it exists, and to
> column one.
>
> BTW, use the lost focus event.
>
> HTH, E.
>
>
>
>
> ________________________________
> De: Sytze de Boer<[email protected]>
> Para: profox<[email protected]>
> Enviadas: Segunda-feira, 30 de Agosto de 2010 17:19:16
> Assunto: Grids and tabbing
>
> I have a valid event in the very last column of my grid
> It goes something like this
>
> IF LASTKEY()=13
> KEYBOARD '{DNARROW}'
> KEYBOARD '{TAB}'
> KEYBOARD '{TAB}'
> KEYBOARD '{TAB}'
> **I do the tabbing 4 times because I want to go to the 4th column
> **But the system only tabs the one time
>
> **So I've tried the following
> thisform.pageframe1.page1.grid1.column5.SetFocus
> **but this doesn't work either
> endif
>
> Can anyone guide me?
>
>
>
_______________________________________________
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.