generateUuid
generateUuid(variant: Integer): Binary;
The generateUuid method of the Application class generates and returns a binary Universally Unique Identifier (UUID) value, which can be used as an attribute of an object so that it can be exposed to third-parties.
Use one of the following global constants in the
Global Constant | Integer Value | Description |
---|---|---|
VariantDce | 2 |
|
VariantMicrosoft | 3 | Generates a UUID using CoCreateGuid, which .NET Guid.NewGuid() also uses. |
VariantNcs | 1 | Reserved for NCS (Network Computing System) backward compatibility. |
The following code example shows the use of the generateUuid method.
create() updating; begin self.uuid := app.generateUuid(VariantDce); end;