Converts a class identifier GUID to a string.
function GUIDToString(const GUID: TGUID): string;
AnsiString GUIDToString(const TGUID GUID);
SysUtils
GUIDToString converts a GUID into a string of printable characters. Each GUID always converts to a unique string.
If GUIDToString succeeds it returns a string for the requested GUID. If GUIDToString fails, it raises EConvertError.
Delphi Examples:
{ OleCheck, GuidToString example The following example manufactures a GUID and displays it in a dialog box after translating it to a string. } uses ActiveX, ComObj; procedure TForm1.Button1Click(Sender: TObject); var G: TGUID; begin OleCheck(CoCreateGuid(G)); ShowMessage(SysUtils.GuidToString(G)); end;
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|