Load this page inside it's real home
 CreateGUID
 Create a GUID (Globally Unique Identifier)

FUNCky 6.0®
COM Component


 Syntax
obj.CreateGUID

Part

Description

obj A FUNCky Object created by a previous call to CreateObject.

 Returns
A String containing a GUID.
 Description
CreateGUID returns a string containing a standard COM formatted 128bit Globally Unique Identifer.

The string is formatted as "{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}" where the xx's represent the COM formatted 128bits of the GUID. The opening and closing braces are also standard COM formatting.

If an error occurs, "" is returned.

Use CreateGUID function when you need a unique number. To a very high degree of certainty, CreateGUID returns a unique value. No other invocation, on the same or any other system (networked or not), should return the same value.


Tip Use GUIDs as names for temporary data files or to create unique keys or random test data.

 Example


Str = FUNCky.CreateGUID()
// Result: Str = "{14CB343A-78DE-11D2-B3E8-0000C085C327}"

Copyright© 1988-2012 dLESKO® Inc. All rights reserved.