General information
Category:
Forms & Form designer
I have a simple FORM for search a customer record.
It's inculed :
one GRID1 && browse the database of customer file.
one pageframe1...page1...text1 && input value for search in customer code no.
...page2...text1 && input value for search in customer name
one button (cmd_ok)
one button (cmd_cancel)
There is the "KeyPress" event at "THISFORM.PAGEFRAME1.PAGE2.TEXT1"
**********
LPARAMETERS nKeyCode, nShiftAltCtrl
IF LASTKEY()=13
SET ORDER TO 2
SEEK ALLT(THISFORM.PAGEFRAME1.PAGE2.TEXT1.Value)
IF RECNO(0) <> 0
GO RECNO(0)
ENDIF
THISFORM.GRID1.COLUMN2.SETFOCUS
ENDIF
**********
QUESTION : After i key in a words and press [ENTER], i can see the grid had show the right record for me. But my cursor stand on my PAGEFRAME1.PAGE2, not the row inside the grid.
Why???
Next
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