ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Miscellaneous WINDEV functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
GetGUID (Function)
In french: DonneGUID
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.
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(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:
guidRoughThe GUID corresponds to a sequence of 16 hexadecimal characters.
For example: "CD9FE4B6AE1D448CB157D9EA074726CF".
guidRough256The 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
Component: wd300std.dll
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help