System.SysUtils.StringToGUID
Delphi
function StringToGUID(const S: string): TGUID;
C++
extern DELPHI_PACKAGE GUID __fastcall StringToGUID(const System::UnicodeString S);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.SysUtils.pas System.SysUtils.hpp |
System.SysUtils | System.SysUtils |
Description
Converts a string into a GUID.
StringToGUID converts the string representation of a GUID, S, into an equivalent TGUID data structure.
If StringToGUID succeeds, it returns the requested GUID. If StringToGUID fails, an EConvertError exception is raised.
See Also