Usina BRAdvPL Guide
Sign in
← All topics
FUNCTIONUnder review

FWUUID

FWUUID(cChave) -> cUUID

Converts a sequential key into a version 3 UUID.

FWUUIDAdvPL
01 · OVERVIEW

Overview

Accepts a numeric string of up to 25 digits. Documentation says key, HardLock and disk participate in construction; do not promise equal output across installations or treat it as a generic RFC namespace converter. (Sources: refs. 1–1.)

02 · SYNTAX

Syntax

FWUUID(cChave) -> cUUID

Parameters

cChave
CharacterRequired

Numeric sequence, up to 25 digits.

Return value

Identifier string.

03 · PRACTICAL EXAMPLE

Commented example

#Include "Protheus.ch"

User Function Ed454()
    Local cId := FWUUID("000001")
    // Identifier, not an authentication credential.
    ConOut(cId)
Return Nil
Expected result

Displays an identifier; its value depends on implementation and context. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

BEST PRACTICES
  • Enforce storage uniqueness and do not use UUIDs as passwords, authorization or secrets.
  • Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

Related content

REFERENCES
  1. TOTVS. FWUUID. TDN. Accessed on 2026-10-27.
Status
Under review
Page created on
Last reviewed on
Original language
Portuguese
Reviewed by
Usina.BR
0 approved comment(s)

Comments

There are no approved comments yet.

Sign in with Google or Microsoft to comment.

Powered by Usina Docs · Alpha