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:58:03
Luis Santos
Biglevel-Soluções Informáticas, Lda
Portugal
 
 
À
03/12/2017 09:41:50
Luis Santos
Biglevel-Soluções Informáticas, Lda
Portugal
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:
01656066
Vues:
48
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform