Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parameters data type declaration for calling an Active X
Message
De
03/02/2002 18:30:35
 
 
À
03/02/2002 12:34:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00614540
Message ID:
00614633
Vues:
24
>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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform