Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Intellisense - Constant
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00562303
Message ID:
00562425
Views:
14
>>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.

Nice tip!
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform