Calling OLE Object Methods

Top  Previous  Next

Both OLE Automation to an OLE Server application and OCX/ActiveX objects publish methods (procedures) that you can call to have the object perform specified actions. Since OCXs are the OLE successors to VBX controls, most OCX vendors provide their example code using Visual Basic (VB) syntax. Those that can be used in C++ programs usually also have C++ code examples.

Translating these examples to the relevant Clarion code usually requires some knowledge of VB or C++. This section demonstrates the most common types of method calls in VB examples and how they translate to Clarion.

Method Syntax Overview

Parameter Passing to OLE/OCX Methods