Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Restore cursor after scan
Message
De
19/01/2018 06:50:00
 
 
À
19/01/2018 05:10: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:
01657368
Message ID:
01657369
Vues:
69
>Hello comunity,
>
>I need to restore cursor position on Grid after doing a Scan to this inicial position , example:
>
>
>select bi
>mypos = recno()
>
>select bi
>scan
>IF myref  = 'AA'
>replace something with anotherthing
>Endif
>endscan
>
>Go record mypos
>
>
>But don´work.
>
>Someone could give me help about how do that.
>Many thanks


I assume what you're trying to do is make sure the same set of rows is displayed as before. Take a look at the ActiveRow and RelativeRow properties. You might be able to use them along with RecNo() to figure out which row had focus and where it was in the grid. You can use the DoScroll method to move things in the grid.

Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform