RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.StringToGUID Function

Converts a string to a GUID.

Pascal
function StringToGUID(const S: string): TGUID;
C++
TGUID StringToGUID(const AnsiString S);

SysUtils

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!