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 ????
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only