COMPATIBILITY (set OLE control compatibility)

Top  Previous  Next

 

COMPATIBILITY( mode )

COMPATIBILITY

Specifies OLE control compatibility setting.

mode

An integer constant for the compatibility setting.

The COMPATIBILITY attribute (PROP:COMPATIBILITY, write-only) specifies a compatibility mode for certain OLE or .OCX objects that require it. The mode should in general be zero (0), however some OLE objects (like Windows bitmap editor) do not work unless it is set to one (1).

Example:

WinOne WINDOW,AT(0,0,200,200)

       OLE,AT(10,10,160,100),USE(?OLEObject),CREATE('Excel.Sheet.5'),COMPATIBILITY(0)

       END

      END