GenerateKey: Integer;
The GenerateKey method generates a unique key within current repository.
System sequence, created on the DBMS server, is used to generate keys.
Sub Main;
Var
MB: IMetabase;
i: Integer;
Begin
MB := MetabaseClass.Active;
i := MB.GenerateKey;
End Sub Main;
After executing the example the "i" variable stores the generated unique key.
See also: