Saltar al contenido principal
Versión: 20 R10 BETA

Generate UUID

Generate UUID : Text
Generate UUID( version ) : Text

ParámetrosTipoDescripción
versionIntegerUUID version: 4 (default) or 7
ResultadoTextNew UUID as non-canonical text (32 characters)
Historia
LanzamientoModificaciones
20 R10Support of version parameter

Descripción

The Generate UUID returns a new 32-character UUID identifier in non-canonical form.

An UUID is a 16-byte number (128 bits). It contains 32 hexadecimal characters. It can be expressed either in non-canonical form (series of 32 letters [A-F, a-f] and/or numbers [0-9], for example 550e8400e29b41d4a716446655440000) or in canonical form (groups of 8,4,4,4,12, for example 550e8400-e29b-41d4-a716-446655440000).

You can use the optional version parameter to set the UUID version to generate. The following values are accepted:

  • 4 (default if omitted), for fully random UUIDs
  • 7, for random and timestamp UUIDs (chronological order matches lexical order).
nota

For more information on UUID version 7, please read this blog post.

In 4D, UUID numbers can be stored in fields (see UUID Format. A 4D settings option allows generating version 7 UUIDs in automatic fields.

Ejemplo

Generation of a UUID in a variable:

 var MyUUID : Text
MyUUID:=Generate UUID

Propiedades

Número de comando1066
Hilo seguro

AltStyle によって変換されたページ (->オリジナル) /