This ABL function
|
Returns this value
|
GENERATE-UUID
|
A 16-byte RAW value that represents a universally unique identifier (UUID). A UUID is guaranteed to be unique for all practical time and space.
|
GUID( UUID )
|
A CHARACTER value that represents a globally unique identifier (GUID). A GUID is UUID converted to a 36-character string value consisting of 32 hexadecimal digits formatted with 4 hyphens in a standard fashion suitable for display. If you do not specify an argument, the function generates a UUID and returns the GUID for it. If you specify a UUID, which must be 16-byte RAW value, the function converts the UUID argument to a GUID.
|
This ABL function
|
Returns this value
|
BASE64-ENCODE( expression )
|
A LONGCHAR value consisting of a Base64 representation of the RAW or MEMPTR value passed as expression
|
BASE64-DECODE( expression )
|
A MEMPTR value that represents the CHARACTER or LONGCHAR value containing a Base64 string passed as expression
|
HEX-ENCODE( expression )
|
A CHARACTER value consisting of a hexadecimal representation (an even number of the digits 0 through 9 and A through F) of the RAW value passed as expression
|
HEX-DECODE( expression )
|
A RAW value that represents the CHARACTER value containing an even number of hexadecimal digits (0 through 9 and A through F) passed as expression
|
DEFINE VARIABLE hCP AS HANDLE NO-UNDO.
CREATE CLIENT-PRINCIPAL hCP. hCP:SESSION-ID = SUBSTRING(BASE64-ENCODE(GENERATE-UUID), 1, 22). |