Carapace

Guid Class

The Guid class wraps up the 16-byte GUID (globally unique identifier) which is widely used with COM to identify just about everything!

Guid Creation

The create function can be used to create a GUID eg.

    (create Guid "new")
creates a brand new GUID.

To create a GUID from a given string:

    (create Guid "{0B803662-8DEA-11D3-8185-0050048C7269}")
Also, a symbolic name can be used eg.
    (create Guid "InternetExplorer.Application")
Finally, a Guid can be created from a Dispatch interface. For example, suppose the variable disp holds a Dispatch interface, then:
    (create Guid disp)
creates a Guid object from the identity of the dispatch interface.

Guid Properties

property name property type description
string String return a string form of the guid
binary Binary return a binary form of the guid
interfaceName String return a symbolic name, treating the GUID as identifying a COM interface - if no such name can be found, then a string form of the GUID is returned
className String return a symbolic name, treating the GUID as identifying a COM class - if no such name can be found, then a string form of the GUID is returned

Guid Methods

method name description
set set the contents of the GUID object from the supplied string


set

Set the contents of the GUID object from the supplied string.

Arguments:

textString

Return type: the empty List () is returned. The action is to fill the Guid object from the supplied string.


Contents Index Current topic: COM Related Links: COM helpers, objects, built-in objects