Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parameters data type declaration for calling an Active X
Message
From
03/02/2002 18:30:35
 
 
To
03/02/2002 12:34:41
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00614540
Message ID:
00614633
Views:
21
>The shortest answer to your question is:
>Make a wrapper ActiveX of the existing one in VB.
>All the parameters of the wrapper class should be defined as VARIANT.
>
>VFP7 has strong typing, but I am not sure how strong it is.
>Because I can define variable with a statement like this:
>
LOCAL lnTest AS Integer
>and after that run a line like this:
>
lnTest = 'This should generate an error (according to my idea of strong typing)'
and it does not fire an error.
>So I believe that (even in version 70) VFP works with VARIANT type variables.
>
>HTH

Thanks for your reply,

But with VFP 6.0 pro it does not work. LOCAL lnTest AS Integer would define 3 vars: lnTest, AS and integer! I can assign a value of other type. Same behavior when calling the activeX. One year ago I put my VB CD an books in the trash. Now I need it so, I try to avoid it but maybe l'll have to use it again.

If you or somebody else has another suggestion, I'll take it.
Thanks.
Marc Tétreault (pronounced Tatro, a like in way)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform