Calculates a globally unique identifier (named "GUID"), whose size is:
- equal to 16 bytes, which means 32 hexadecimal characters.
- equal to 32 bytes, which means 64 hexadecimal characters.
Remark: GUIDs correspond to UUIDs.
MyGUID is string
MyGUID = GetGUID()
// Example of calculated GUID: F9168C5E-CEB2-4faa-B6BF-329BF39FA1E4
My UUID is UUID
MyUUID = GetGUID()
// Example of calculated GUID: a0a79fce-b311-4d56-a1fe-f57d1c6e02bc
MyUUID256 is 256-bit UUID
MyUUID256 = GetGUID(guidRough256)
// Example of calculated GUID: bd05db772a9970c1d91adf8f86a7217ad65c64cf95b8cc6bc10cad69432f0473
Syntax
<Result> = GetGUID([<GUID format>])
<Result>: Character string
Generated identifier.
<GUID format>: Optional Integer constant
Used to define the format of returned identifier: | |
guidRough | The GUID corresponds to a sequence of 16 hexadecimal characters. For example: "CD9FE4B6AE1D448CB157D9EA074726CF". |
guidRough256 | The GUID corresponds to a sequence of 32 hexadecimal characters. For example: "bd05db772a9970c1d91adf8f86a7217ad65c64cf95b8cc6bc10cad69432f0473". |
guidFormatted (Default value) | The GUID is formatted for a display with separators. For example: "{CD9FE4B6-AE1D-448c-B157-D9EA074726CF}". |
Remarks
Several successive calls to GetGUID in the same executable are used to get distinct GUIDs.
Business / UI classification: Neutral code