Visual Basic Syntax

The syntax for the LEAD control's properties, methods, and events is the same as for other 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

Integer

BSTR

String

IPictureDisp

Picture

long

Long

OLE_COLOR

Long color value (such as the RGB return value)

short

Integer

float

Single

VARIANT_BOOL

Boolean