Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Display Record Number In Grid Column
Message
De
30/03/2009 08:31:54
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
30/03/2009 01:36:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01392064
Message ID:
01392083
Vues:
48
>Dear Experts
>
>I have this select statement
>
>select name,country from mytable order by name into cursor xyz
>
>It displays following data
>
>Abc----India
>Bush---Germany
>Eric---japan
>
>I want to show display (record number) serial number in other column as
>
>1---Abc------India
>2---Bush---Germany
>3---Eric------japan

recno() seems appropriate. Make sure you select into cursor with the NOFILTER option, otherwise you might get the record numbers from the underlying table.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform