Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Increment Field
Message
 
 
To
11/04/2008 17:46:26
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01309981
Message ID:
01310108
Views:
28
>here is an other way to come to the result (thanks to Brad Schulz)
>
> lnMyNum = 0
> SELECT myTable, GetRunningNumber() AS MySeq FROM myTable INTO CURSOR MyCursor NOFILTER
>
> FUNCTION GetRunningNumber
> lnMyNum = lnMyNum+1
> RETURN lnMyNum
> ENDFUNC
>
>Best Regards,
>
Hi Koen,

The correct version was posted earlier in the Message #1309984. Yours will start numbering from 2 because of extra pass VFP SQL Engine is doing to determine field size for the result set.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform