COM Operations

The following functions can be used to create and manage COM clients:

ACODE$

Translate a Unicode string into an ANSI string

CLASS/END CLASS

Create the code and data for an object.

EVENTS

Attach or detach an event handler to/from an event source

CLSID$

Return a 16-byte (128-bit) GUID string containing a CLSID

GUID$

Return a 16-byte (128-bit) Globally Unique Identifier GUID

GUIDTXT$

Return a 38-byte human-readable GUID/UUID string

IDISPINFO

Sets and returns additional information about certain Dispatch Status Codes for the OBJRESULT function.

INSTANCE

Declare INSTANCE variables which are unique to each object

INTERFACE / END INTERFACE Block (Direct)

Declare a direct object interface and its member Methods/Properties.

INTERFACE/END INTERFACE block (IDBind)

Declare a dispatch interface and its member Methods/Properties for the purposes of IDBinding to a Dispatch COM interface.

ISINTERFACE

Determine whether an object supports a particular interface

ISNOTHING

Determine the current status of a given object variable

ISOBJECT

Determine the current status of a given object variable

LET (with Objects)

Assign an object reference to an object variable.

LET (with Variants)

Assign a value to a variable or Variant

ME

A pseudo object variable to reference the current object

METHOD / END METHOD

Define a METHOD procedure within a class

MYBASE

A pseudo object variable to reference the inherited parent object.

OBJACTIVE

Return True/False of the running state of a COM EXE object

OBJECT GET

Retrieve or read the value of an Dispatch Interface member Property

OBJECT LET

Assign or write a value to an Dispatch Interface member Property

OBJECT SET

Assign or write a value to an Dispatch Interface member Property that contains a reference to an object

OBJECT CALL

Call or execute a member Method of an Dispatch Interface

OBJECT RAISEEVENT

Call or execute a member Method of an event Dispatch Interface

OBJPTR

Return an object pointer of a specified object variable

OBJRESULT

Return the execution result of the most recent OBJECT statement

OBJRESULT$

Returns a string which describes an OBJRESULT (hResult) code

PROGID$

Return the alphanumeric PROGID string (text) of a given CLSID

PROPERTY GET

Retrieve a data value from the object

PROPERTY SET

Assign a data value to an object

RAISEEVENT

Call Event Handler code

RESET

Clear a Variant to empty (%VT_EMPTY)

UCODE$

Translate an ANSI string into a Unicode string

VARIANT#

Return the numeric value contained in a Variant variable

VARIANT$

Return the dynamic string value contained in a Variant variable

VARIANTVT

Determine the internal data type of the data stored in a Variant