Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting next auto increment record number
Message
De
22/08/2005 08:13:53
 
 
À
22/08/2005 08:03:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01042633
Message ID:
01042635
Vues:
22
Must perform the same function as the @@identity in a MS SQL server database.

Upgrade to version 9 - this is one of the language enhancements:

GETAUTOINCVALUE([nDataSessionNumber | 0])

Returns the last value generated for an autoincremented field within a data session.

Parameters

nDataSessionNumber

Specifies the data session number of the data session for which the autoincremented field value is returned. The autoincremented field value is returned for the current data session if you omit the nDataSessionNumber and 0 parameters. Use SET DATASESSION to activate a specific data session.

0

Specifies that the autoincremented field value is returned from within the scope of the current function, procedure, or method.

Return Value
Numeric data type. The value returned by GETAUTOINCVALUE( ) is the last autoincrement value generated, even if a field was not successfully updated with the autoincrement value. .NULL. is returned if an autoincrement value hasn't yet been
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform