Guid.Parse

Syntax

Parse(Value: String): Guid;

Parameters

Value. The string value that must be converted to the Guid type.

Description

The Parse method converts a string value to the Guid type without string correctness validation.

Comments

This method does not take into account specified regional parameters. The symbol dividing integral and fractional parts of a number is not used in the value passed by the Value parameter.

If conversion fails, an exception is thrown.

Example

Sub SampleGuid;
Var
    g: Guid;
Begin
    g := Guid.Parse(
"{10101010-1010-1010-1010-101010101010}");
End Sub SampleGuid;

After executing the example the "g" variable contains the unique global identifier obtained by conversion from the string.

See also:

The Guid Class