Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Row numbers in Grid
Message
De
07/03/2005 11:37:18
 
 
À
07/03/2005 11:25:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
00993302
Message ID:
00993307
Vues:
17
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform