IMetabase.GenerateKey

Syntax

GenerateKey: Integer;

GenerateKey(): uinteger;

Description

The GenerateKey method generates a unique key within current repository.

Comments

System sequence, created on the DBMS server, is used to generate keys.

Example

Add a link to the Metabase system assembly.

Sub UserProc;
Var
    MB: IMetabase;
    i: Integer;
Begin
    MB := MetabaseClass.Active;
    i := MB.GenerateKey;
End Sub UserProc;
Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    i: uinteger;
Begin
    MB := Params.Metabase;
    i := MB.GenerateKey();
End Sub;

After executing the example the "i" variable stores the generated unique key.

See also:

IMetabase