Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Row numbers in Grid
Message
From
07/03/2005 11:37:18
 
 
To
07/03/2005 11:25:02
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00993302
Message ID:
00993307
Views:
19
>Hi everyones. How do I show the row number in a Grid ?
>Thanks in advance.
>Carlos Burgos



Depending on row number is generally not a good design. If you want to show it, then you could add a column to your controlling cursor:
* in VFP9
Select f1,f2,Cast(0 as integer) as rownumber from MyTable Into Cursor dummy readwrite
* in VFP8
Select f1,f2,00000 as n(5,0) as rownumber from MyTable Into Cursor dummy readwrite

* then
replace all rownumber with recno()

* now go to show grid...
HTH


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform