Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return AutoInc field from VFP table using C#
Message
From
25/10/2010 09:45:35
 
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 4.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01486849
Message ID:
01486852
Views:
49
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform