Navigation:  Advantage .NET Data Provider > AdsCommand Class > AdsCommand Properties >

AdsCommand.LastAutoinc

Advantage .NET Data Provider

Previous pageReturn to chapter overviewNext page

Retrieves the last inserted autoinc value after an SQL INSERT or table append.

public int LastAutoinc{ get; }

Remarks

Returns the last inserted Autoinc value for the command object. If no Autoinc value has been inserted or the affected table does not contain an Autoinc field then 0 is returned.

Note The autoinc value returned is client-specific, and because of concurrent database access, is not guaranteed to be the absolute last autoinc value in the table.