Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Restore cursor after scan
Message
From
19/01/2018 06:50:00
 
 
To
19/01/2018 05:10: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:
01657368
Message ID:
01657369
Views:
70
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform