>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())