win.Uuid

LuaFAR 3

win.Uuid


There are 3 actions available, depending on arguments.
All arguments and return values are strings.

ret = win.Uuid ()
  Generate a new (binary) UUID

ret = win.Uuid (binUUID)
  Convert a UUID to string representation

ret = win.Uuid (strUUID)
  Convert a string UUID representation to binary


Note:
If the function is given a string argument, it checks its length.
When the length is 16, the function makes conversion from binary
to string GUID representation, otherwise it tries to convert from
string GUID representation to binary one.