Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Display Record Number In Grid Column
Message
De
30/03/2009 01:49:07
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
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:
01392065
Vues:
59
>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
>
>Please help

That recno() is recno() of xyz, right? Simply add a new column and set its controlsource to:

(recno('xyz'))

In code it would be:
thisform.myGrid.AddColumn(1)
thisform.myGrid.Columns(thisform.myGrid.ColumnCount).ControlSource = '(recno("xyz"))'
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform