This page is intended as a supplement to the official documentation on Delphi programming. CodeGear is in the process of putting the Delphi documentation on the Web. Once they have done so, this page will link to the relevant page in the official documentation.
see the VCL Documentation Guidelines for an overview on doc pages
Unit[]
Description[]
Definition (Delphi 6,2009,2010):
function StringToGUID(const S: string): TGUID;
StringToGUID is a function which converts a string in the form of a GUID into the TGUID data structure.
On succes it will return the TGUID with the converted data.
On failing an EConvertError will be raised
Technical Comments[]
(Known issues / Documentation clarifications / Things to be aware of)
Examples[]
var NewGUID: TGUID; begin { Create a new GUID and convert it to a TGUID } NewGUID := StringToGUID(CreateClassID); end;
See Also[]
- GUIDToString
- TGUID
- CreateClassID
User Comments/Tips[]
(Please leave your name with your comment.)