Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sequential (row) number as first field in cursor
Message
 
 
To
28/09/2005 13:31:02
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Network:
Windows 2000 Pro
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01054066
Message ID:
01054071
Views:
43
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform