Description
The shortenGUID
function removes all hyphens from a specified GUID (Globally Unique Identifier) and returns the result as a string.
Syntax
shortenGUID(string)
Arguments
Argument | Description |
---|---|
string |
The GUID from which hyphens should be removed. |
Return Type
The function returns a string (string
) that contains the original GUID without hyphens.
Examples
Description | Example |
---|---|
Removing hyphens from a GUID |
shortenGUID("123e4567-e89b-12d3-a456-426614174000")Result: 123e4567e89b12d3a456426614174000 |
Notes
- This function is useful when a GUID is needed in a compact format.
- The original GUID remains unchanged; the function creates a new string.
Comments
0 comments
Please sign in to leave a comment.