Access Syntax

The syntax for the LEAD control's properties, methods, and events is the same as for other OLE controls in MicroSoft Access.

In Access 2.0, to use the constants that are defined for the LEADTOOLS ActiveX, you must import the L_ACCESS.BAS file as explained in Loading and Displaying an Image (Access 2.0).

In Access, whenever you declare a variable as a data type, you need to know how the ActiveX data type is expressed in Access Basic. Refer to the following table for the appropriate data type:

ActiveX Data Type

Access Data Type

boolean

Integer

BSTR

String

long

Long

OLE_HANDLE

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