Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return AutoInc field from VFP table using C#
Message
De
25/10/2010 09:45:35
 
 
À
25/10/2010 09:39:55
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 4.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01486849
Message ID:
01486852
Vues:
47
>Is there a way to return the value of a autoinc field when inserting into a VFP free table using C#? I'm looking for something that would be the equivalent of using scope_identity in SQL.

Something like this:
                            oCommand.CommandText = "GETAUTOINCVALUE(0)"
                            oCommand.CommandType = CommandType.StoredProcedure
                                        nPrimaryKey = CInt(oCommand.ExecuteScalar())
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform