Visual Basic Syntax
The syntax for the object's properties, methods, and events is the same as for other objects/controls in Visual Basic.
Whenever you declare a variable as a data type, you need to know how the ActiveX data type is expressed in Visual Basic. Refer to the following table for the appropriate data type:
|
ActiveX Data Type |
Visual Basic Data Type |
|
boolean |
Boolean |
|
BSTR |
String |
|
IPictureDisp |
Picture |
|
long |
Long |
|
OLE_HANDLE |
Integer on a 16-bit system; Long on a 32-bit system |
|
OLE_COLOR |
Long color value (such as the RGB return value) |
|
OLE_XPOS_PIXELS |
Long |
|
OLE_YPOS_PIXELS |
Long |
|
short |
Integer |
|
float |
Single |