Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Increment Field
Message
 
 
À
11/04/2008 17:46:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01309981
Message ID:
01310108
Vues:
29
>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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform