Subject Re: Grid
From Akshat Kapoor <akshat.kapoor@kapoorsons.in>
Date Thu, 23 Jul 2020 12:03:42 +0530
Newsgroups dbase.getting-started

On 23.07.2020 10:31, Tony Hughes wrote:
> Hi All,
> I have a grid set up in my code with about 130 coded products - Code like PWD039 - LIQ063 etc which are codes for raw material chemicals - Can I add say an entry field to one side/ bottom that I can enter the above codes and it finds that record in the grid. I am doing this in other functions throughout the form, but can't seem to do it with the grid that I have running ?  The Table is indexed on "Stock Code" which holds the above mentioned codes - Tony h
>

Good Morning Tony,
Use onKey event of the entryfield to navigate using
findkey()/findkeynearest()
onKey fires for every keystroke.

Since the table is already indexed on that field it will not be much of
an issue.

Check for unwanted navigation for keys like ENTER / TAB etc.
I do not know your exact code hence cannot say for sure if it will
effect or not but worth watching for.

Regards
Akshat