COM Operations

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

#COM DOC

Specifies a help string which usually provides a general description of the COM server.

#COM HELP

Specifies the name of the associated help file and the help context code.

#COM NAME

Specifies the name of the server and the version number.

#COM GUID

Specifies the GUID which identifies the entire application or library (APPID or LIBID).

ACODE$

Translate a Unicode string into an ANSI string.

CLASS/END CLASS

Create the code and data for an object.

CLSID$

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

ENUM/END ENUM

Creates a group of logically related numeric equates.

EVENT SOURCE

Declare an event interface within a Class definition.

EVENTS

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

FOR EACH/NEXT

Define a loop of program statements which can sequentially examine and act upon each member of a PowerCollection or LinkListCollection.

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.

OBJEQUAL

Check if object variables refer to the same object.

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 ANSI dynamic string value contained in a Variant variable.

VARIANT$$

Returns the Unicode string value contained in a Variant variable.

VARIANTVT

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