[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'sysutils' (#rtl)

StringToGUID

Convert a string to a native TGUIDtype.

Declaration

Source position: intfh.inc line 30

function StringToGUID(

  const S: String

):TGUID;

Description

StringToGUIDconverts the string Sto a valid GUID. The string Sshould be of the form

{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}

Where each X is a hexadecimal digit. The dashes and braces are required.

Errors

In case Scontains an invalid GUID representation, a EConvertErrorexception is raised.

See also

Supports

  

Check whether a class or given interface supports an interface

#rtl.system.TGUID

  

Standard GUID representation type.

GUIDToString

  

Convert a TGUIDto a string representation.

IsEqualGuid

  

Check whether two TGUIDvariables are equal.