>Hi,
> How to use ActiveX control constant in application? For example:
>
>myobj = CREATEOBJ("InetCtls.Inet.1")
>myobj.Protocol = icFTP
>
>VFP return error variable icFTP is not found!
>How could I make use of constant instead of knowing the actual value of the constant?
>
>Thank you
To help along the lines that Sergey showed you, with VFP 7 you can open the type library for the OCX (if it exists) using the Object Browser and drag the constants into your include file/program/form. The #DEFINEs will automatically be created for you.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao