UUID.Create

Top  Previous  Next

Creates a GUID string.

 

Syntax

function UUID.Create(): guid-string

 

Description

Creates a GUID string, a globally unique identifier in a specific format, eg '{A460009D-A324-4ACC-8898-C4E818F5BC2C}'

 

The Return Value is a GUID string value.

 

See Also

UUID.IsEqual

 

Example

execute UDSBlock returns (str_value varchar(100))

as

begin

  /* creates 2 GUIDs */

  value1 = UUID.Create();

  value2 = UUID.Create();

  /* compare GUID values */

  str_value = UUID.IsEqual(value1, value2);

  suspend; /* returns False */

  

  str_value = UUID.IsEqual(value1, value1);

  suspend; /* returns True */

end