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 09:58:03
Luis Santos
Biglevel-Soluções Informáticas, Lda
Portugal
 
 
To
03/12/2017 09:41:50
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:
01656066
Views:
47
Hello Yousfi,

I think that i solve my problem.
lnrecno = recno()
Select FI
    Locate
    Locate For Alltrim(FI.ref) == '2118661'

    If Found()
      lnrecno = recno() && keep the recno() for my record
      SFT.pageframe1.ActivePage=1
      SFT.pageframe1.Page1.Cont1.grid1.SetFocus() 
go (lnrecno)  && go to my record
    Else
      Messagebox("not found")
    Endif
now that i can set the focus on my desired record.

Many thanks again,
Luis
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform