lFormatRequests formatting.
AdvPL GuideFWUUIDV4([lFormat]) -> cUUIDGenerates a version 4 UUID.
The official description identifies an algorithm based on random numbers. Its published example calls V1, apparently a copy error; this editorial example calls V4 as described by the function name and contract. The page does not establish a specific cryptographic guarantee for the installed implementation. (Sources: refs. 1–1.) The referenced community template calls FwUUIDv4() in a hidden field; this demonstrates a call rather than a security protection.
FWUUIDV4([lFormat]) -> cUUIDlFormatRequests formatting.
Identifier string.
#Include "Protheus.ch"
User Function Ed456()
Local cId := FWUUIDV4(.T.)
// Identifier, not an authentication credential.
ConOut(cId)
Return NilDisplays 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.
© 2026 Usina.BR. All rights reserved. TOTVS, Protheus, Microsiga and their respective logos are trademarks of their owners. AdvPL Guide is independent and uses limited, attributed excerpts justified by educational purposes. See the Terms of Use. Terms of Use
Comments
There are no approved comments yet.
Sign in with Google or Microsoft to comment.