>
> 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?
>I'm not sure what you are trying todo. I have never used that control but if what you want to do is FTP from VFP, you could access Wininet.dll directly or even better (and easier) use wwIPStuff from Rick Strahl (
http://www.west-wind.com)
For the constants you are asking, I believe you may find them in file INET98.CHM that comes with VS6.0, under section called "Trappable Errors for the Internet Transfer Control".
There you'll see several FTP-related error constants such as:
icFtpCommandFailed 35759 "FTP command failed
You could create an .H file from that page with all the values you need.