>Hi All!
>J have VFP 5/6 application,that must works with Hebrew Windows version.
>J want a Grid allows to shift from rigth to left after Enter key was pessed.
>Now J may use by Shift+Tab key for moving from right to left,but not after
>Enter key was pessed.(J tried SetFocus after Enter key,but it is not enough,if J go to the Value event,J could't use by SetFocus).
>Thanks!
Yochanan,
Lparameters nColIndex
If !mdown() and lastkey()=13
Nodefault
With this
lnTargetOrder = iif( nColIndex=1, .Columncount, nColIndex-1)
For ix=1 to .Columncount
If .Columns(ix).Columnorder = lnTargetOrder
.Columns(ix).Setfocus
Exit
Endif
Endfor
Endwith
Endif
Cetin