Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Search and set focus on specific record on my grid
Message
From
03/12/2017 14:07:51
 
 
To
03/12/2017 09:58:03
Luis Santos
Biglevel-Soluções Informáticas, Lda
Portugal
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Windows Server 2012 R2
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01656045
Message ID:
01656073
Views:
54
Hi Luis
some things to take:

'locate' is a command to tell the table or cursor to go to the top of records.
'locate' is more fast than 'go top'

'locate for' sweeps all the records begining with the top until finding the concerned by the request.no need to tell him "locate or go top" before.
if your cursor is the recordsource of the grid and 'locate for' finds the searched record,the cursor is auto positioned on it when setfocus(see the recordMark and the highlight color).
it follows until the bottom(eof()).
no need to tell him to go to this record.if you see the grid its auto focused and highlighted on the found record.

can see also the class home(1)+"ffc\_table.vcx" to more searches. (Find (Findnext) Buttons Foundation Class in foxhelp)
Previous
Reply
Map
View

Click here to load this message in the networking platform