www.icetips.com  Icetips Utilities Documentation 5/9/2015    

Core Class: CreateGUID

Previous  Top  Next  


Prototype: (Byte pAddBraces=1),String

 

pAddBracesAdds 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 

 

ReturnsThe 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:

IT_GUID

 

 

 



Direct link to this page: http://www.icetips.com/manuals/utilities/createguid_core.htm