asGuid

asGuid(): Binary;

The asGuid method of the String primitive type returns the class identifier (clsid) receiver string as a Globally Unique Identifier (GUID) binary representation. Binary GUID representations of string class identifiers (used in ActiveX control and automation libraries, for example) take less space than a visual string representation. This method raises an exception if the receiver is not a GUID string in the following format.

"{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}"

See also the Binary primitive type asGuidString method.