thisform.grid1.column1.text1.setfocus()
>i had create a FORM for my client to searh a buyer record.
>there have a GRID1 ( as a browser to view buyer_no, comp_name )
>and have a TEXTBOX for input the code number to search.
>
>i had write something in TEXTBOX.KEYPRESS as below :
>
>LPARAMETERS nKeyCode, nShiftAltCtrl
>IF LASTKEY()=13
> SEEK THISFORM.TEXT1.Value
> THISFORM.GRID1.COLUMN1.TEXT1.SETFOCUS
>ENDIF
>
>finally.....after i input a buyer number, the record point in GRID1 was go to the right record, BUT the SETFOCUS to GRID1 haven't done.
>the cursor still inside in TEXT1 ??
>
>i had try to set - THISFORM.GRID1.COLUMN1.SETFOCUS
> - THISFORM.GRID1.SETFOCUS
>BUT same result ????
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement