Delphi Programming

StringToGUID Routine

2,919pages on
this wiki
Add New Page
Talk0 Share
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.
This article is a stub.
Please help enhance the Delphi Programming Wiki by expanding it.
see the VCL Documentation Guidelines for an overview on doc pages



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 CommentsEdit

(Known issues / Documentation clarifications / Things to be aware of)


  { Create a new GUID and convert it to a TGUID }
  NewGUID := StringToGUID(CreateClassID);

See AlsoEdit

User Comments/TipsEdit

(Please leave your name with your comment.)

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Also on Fandom

Random Wiki