Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Search and set focus on specific record on my grid
Message
De
03/12/2017 09:41:50
Luis Santos
Biglevel-Soluções Informáticas, Lda
Portugal
 
 
À
02/12/2017 15:51:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Windows Server 2012 R2
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01656045
Message ID:
01656062
Vues:
43
Hello Yousfi,

I try your code like that:
Select FI
    Locate
    Locate For Alltrim(FI.ref) == '2118661'
    If Found()
      SFT.pageframe1.ActivePage=1
      SFT.pageframe1.Page1.Cont1.grid1.SetFocus()
    Else
      Messagebox("not found")
    Endif
In fact, the record pointer select the line of my grid where Alltrim(FI.ref) == '2118661', but after that , the record pointer return to the first line in the Grid without making the setfocus on the line with the value i want to locate.
I presume that is the refresh method on the grid.
How can solve this?, do i must keep the recno() of the value that i want and after that make a kind of go to recno() ?

Best regards,
Luis
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform