AUTOID

This function will return a GUID (Globally Unique Identifier)


AUTOID()

PARAMETERS

NONE

Example:
To automatically save a new GUID value into the ID field on your current form whenever a new record is added, place the following line of code in your form’s ON ADD event.  (note: Assumes your ID field is bound to a textbox with tag value of IDFIELD)

SETVALUE(~IDFIELD~//AUTOID())