NewGuidStringNoBraces
Function NewGuidStringNoBraces: string
Example
procedure ScriptEvent(var Value: variant);
begin
Value := NewGuidStringNoBraces;
// Shape: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
end;
Usage
NewGuidStringNoBraces requests a new Windows UUID and returns uppercase 36-character hyphenated text.
Returns
XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX, with uppercase hex and four hyphens.
Important usage notes
- No braces are returned, but hyphens remain; this is not a compact 32-character encoding.
- Casing is uppercase under Velox.
- UUID-generation status is lost before formatting, exactly as for
NewGuidandNewGuidString. - The output is not validated as nonzero and is not checked against stored identifiers.
- Treat it as an identifier, not a secret, token or creation-time-ordered key.
Additional Technical Info
NewGuidStringNoBraces requests a Windows UUID, formats it through Delphi's standard brace-wrapped representation, then removes the two generated braces. The final form is 36 uppercase hexadecimal/hyphen characters.
The example shows only the nondeterministic result shape. It is source-reviewed and was not executed by the documentation workflow.
Implementation
The exact chain is:
NewGuidStringNoBraces
-> NewGuidString
-> GUIDToString(NewGuid)
-> CreateGUID / Windows UuidCreate (status ignored)
-> NoBraces(generated 38-character string)
NoBraces has unsafe behavior on arbitrary unbalanced strings, but this call path supplies a guaranteed {...} result from Delphi GUIDToString, so its first/last-character removal is well-defined.
Side effects and errors
One Windows UUID request and short string allocations. No persistent write. Generation status is ignored; DLL/runtime/allocation failures may still propagate.
Performance and concurrency
Constant-size OS generation and formatting work with no Velox shared counter.
Related entries
NewGuiddocuments creation/status behavior.NewGuidStringretains braces.GUIDToStringNoBracesconverts an existing record to this shape.SafeStringToGuidaccepts this 36-character form by adding braces.
External references
Created 2026-07-15