|
Previous Top Next |
Prototype: | (Byte pAddBraces=1),String |
pAddBraces | Adds curly braces around the GUID. This parameter is true by default. Example: {87C4B7EF-F219-4FD7-AB94-BEA4287C2E2F} If this parameter is false, no curly braces are added and this GUID would look like 87C4B7EF-F219-4FD7-AB94-BEA4287C2E2F |
Returns | The GUID formatted as specified by the pAddBraces parameter. |
This method uses CoCreateGUID and StringFromGUID2 api calls to create and format a Global Unique Identifier which can be used for all kinds of things. Note that by default the method will add the curly braces around the GUID.
Example:
ITC ITCoreClass
GUID String(40)
Code
GUID = ITC.CreateGUID() !! WITH curly braces
GUID = ITC.CreateGUID(False) !! WITHOUT curly braces
See also: