I wan to use incremental search in my application
I have one from and one edit box in my application
how to use incremental search in the application ?
This code is from THISFORM.Text1.KeyPress() event
* SaveAlias() Saves current ALIAS()
lcData = ALLT(THIS.Value)+ CHR(nkeyCode)
SELE TABLENAME && Select Alias()
SET NEAR ON
SEEK UPPE(lcData)
SET NEAR OFF
RELE lcData
THISFORM.Grid1.Refresh()
* RestAlias() Restore old ALIAS()
As you type in .Text1, .Grid1 will show the nearest found record. Make sure you are SEEKing on a indexed field
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.