PreviousNextIndex

GUID function

Converts a universally unique identifier (UUID) value into a globally unique identifier (GUID) value. This function returns a GUID as a 36-character string value consisting of 32 hexadecimal digits (0 through 9 and A through F) and 4 hyphens formatted as follows (where X is a hexadecimal digit): XXXXXXXX—XXXX—XXXX—XXXX—XXXXXXXXXXXX.

Syntax

GUID( [ UUID ] ) 

UUID
Example

The following code fragment illustrates how to use the GUID function:

DEFINE VARIABLE MyUUID AS RAW       NO-UNDO. 
DEFINE VARIABLE vGUID  AS CHARACTER NO-UNDO. 
ASSIGN 
  MyUUID = GENERATE-UUID 
  vGUID  = GUID(MyUUID). 

See also

GENERATE-UUID function


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex