Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sequential (row) number as first field in cursor
Message
 
 
À
28/09/2005 13:31:02
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 6 SP5
OS:
Windows 2000 SP4
Network:
Windows 2000 Pro
Database:
Visual FoxPro
Divers
Thread ID:
01054066
Message ID:
01054071
Vues:
44
1. Add a field that will store the #
2. Run the query
SELECT 0000000000 AS SeqNum, &lcFieldList FROM ... into cursor CC  WHERE  &which
3. Open cursor R/W and replace SeqNum with RECNO()
SELECT 0
USE DBF("cc") AGAIN ALIAS ccsn
REPLACE ALL SeqNum WITH RECNO()
>
>How to put sequential (row) number in select counstruct like:
>
>SELECT &lcFieldList FROM ... into cursor CC WHERE &which
>
>CC ( 1, .. )
>CC ( 2, .. )
>
>TIA, gojko
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform