Function UuidCreate() Foundation

Create a Universally Unique IDentifier

Syntax
UuidCreate() --> xUUID
Return

The function UuidCreate() returns a binary character string with the length 16. Any character from the range Chr(0) to Chr(255) can be included.

Description

With the function UuidCreate() an Universally Unique IDentifier can be created. This identifier can be used as primary key in a database. It can also be used as identifier for persistent information or information exchanged via the Internet.

Any character - even special characters - can be inclued in the UUID. Therefore a UUID is neither radable nor suitable for textual output. By using the function UuidToChar() the UUID can be transformed to a readable and printable representation.

Examples
UuidCreate()
// Create and display 10 UUIDs 

PROCEDURE Main() 
  LOCAL n 

  FOR n := 1 to 10 
    ? UuidToChar( UuidCreate() ) 
  NEXT 

  WAIT 

RETURN 
Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.