ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Miscellaneous WINDEV functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
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.
Note: GUIDs correspond to UUIDs.
Example
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(guidRaw256)
// 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:
guidRawThe GUID corresponds to a sequence of 16 hexadecimal characters.
Example: "CD9FE4B6AE1D448CB157D9EA074726CF".
In previous versions, this constant corresponds to 'guidRough'.
guidRaw256The GUID corresponds to a sequence of 32 hexadecimal characters.
Example: "bd05db772a9970c1d91adf8f86a7217ad65c64cf95b8cc6bc10cad69432f0473".
In previous versions, this constant corresponds to 'guidRough256'.
guidFormatted
(Default value)
The GUID is formatted for display with separators.
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
Component: wd300std.dll
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/26/2025

Send a report | Local help