Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to find which record shows first in a grid
Message
From
10/10/2012 12:57:23
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01554683
Message ID:
01554687
Views:
56
>>Is there a way to find which record shows in the first row of a grid? RECNO() would be fine.
>>
>>TIA,
>>
>>Alex
>
>It depends of the current ORDER.
>Maybe the MIN() value of the order KEY?
>or even:
>
>SELECT GridRecordSource
>GO TOP
>lnTOPRecNo = RECNO()
>
>
>but you should change it everywhere you change the current order of that table.

In that case,
select 0
use dbf("gridrecordsource") again alias src2
* do something to set order the same as in the grid
go top
lnTopRecNo=recno()
use

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform