In ordrer to use constants you have to define them somewhere. One of the ways is just use #DEFINE command directly in your code
#DEFINE icFTP < value >
Another way is to find or create include file with all related #DEFINE's and than use #INCLUDE command in your program.
>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
--sb--