Usina BRAdvPL Guide
Sign in
← All topics
FUNCTIONUnder review

FWUUIDV1

FWUUIDV1([lFormat]) -> cUUID

Generates a version 1 UUID.

FWUUIDV1AdvPL
01 · OVERVIEW

Overview

The reference describes a timestamp and hardware hash. lFormat controls presentation and defaults to false; its own example omits the argument despite the table marking it required. We explicitly pass .T. (Sources: refs. 1–1.)

02 · SYNTAX

Syntax

FWUUIDV1([lFormat]) -> cUUID

Parameters

lFormat
LogicalOptional

Requests formatting.

Return value

Identifier string.

03 · PRACTICAL EXAMPLE

Commented example

#Include "Protheus.ch"

User Function Ed455()
    Local cId := FWUUIDV1(.T.)
    // 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. FWUUIDV1. 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