keepingbusy
Programmer
I use the following to search for an item in a table:
Code:
SET EXACT OFF
SET ORDER TO PRODNUMB
SEEK(mprodnumb)
IF FOUND()
=MESSAGEBOX("etc etc....
THISFORM.GRID1.SetFocus
RETURN 0
ENDI
If I use the following, it is still found and will highlight in the grid:
Code:
LOCATE FOR PRODNUMB=mprodnumb
IF FOUND()
=MESSAGEBOX("etc etc....
THISFORM.GRID1.SetFocus
RETURN 0
ENDI
I am led to believe that SEEK is quicker than LOCATE so my question is, how can I overcome the above issue which will allow me to use SEEK instead of LOCATE so the FOUND record will show as a highlighted record in the grid?
I am using VFOX Version 9
Thanks guys
Lee