Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Intellisense - Constant
Message
From
29/09/2001 22:16:18
 
 
To
29/09/2001 21:42:11
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00562303
Message ID:
00562304
Views:
17
>> 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.


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Reply
Map
View

Click here to load this message in the networking platform