IDAUseGenerators2

Overview

The IDAUseGenerators2 interface returns the next value of a specified generator as variant value.

This interface is supported by all drivers that work with Oracle, InterBase/Firebird or PostgreSQL.

Note: This interface replaces IDAUseGenerators, which could return the next generator values only as integer values.

Location


Required Methods


GetNextAutoinc  safecall    (declared in IDAUseGenerators)

Returns the next AutoInc value of a specified generator as integer value.

function GetNextAutoinc(const GeneratorName: string): Integer

Parameters:

  • GeneratorName: Specified generator name.

GetNextAutoinc2  safecall

Returns the next AutoInc value of a specified generator as variant value.

function GetNextAutoinc2(const GeneratorName: string): Variant

Parameters:

  • GeneratorName: Specified generator name.