Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CreateObject passing parameters problem
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00792780
Message ID:
00792782
Vues:
13
I don't think you can pass parameters to COM servers during instantiation. I've never been able to, so I've just assumed that it's not possible.

Someone else may be able to confirm this.



>Hello all,
>
>
>I have a problem trying to pass parameters to a VFP COM server that I have created. When I create the COM server the parameter is not passed to the INIT event within the COM object eg.
>
>lo = CREATEOBJECT("ob.recordoleobject", "YES")
>
>INIT() EVENT CODE &&&BEGIN
>LPARAMETERS tcStr
>this.ctest = tcStr
>
>RETURN &&END
>
>When ?lo.ctest is queried .f. is displayed instead of "YES" the original parameter passed when creating the object. Not sure if I have done something wrong??
>
>Platform: Windows 2000 SP3, VFP7SP1
>
>Thanks,
>
>Paul.

Read about the greatest fraud in the history of mankind.
See TaxableIncome.net.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform