Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Does COM allow parameters?
Message
 
 
À
31/07/2000 10:56:50
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00398803
Message ID:
00398830
Vues:
25
Jon,
This may be trivial but is the name of the function in your COM server actually MyForm_Init? If so, that is your problem. The function must be named Init.

This looks like VB syntax.

You can use the _Event syntax when you have other objects on the form.

>I've got an out-of-process automation server with one OLE public class. It's base class is form. I attempt to accept a parameter in the form's init event, but the parameter is always initialized as .F.
>
>Does this mean COM objects can't accept parameters??
>
>*In COM object:
>PROCEDURE MyForm_Init()
> LPARAMETERS tlNotify
> *do some stuff if tlNotify is .T.
>ENDPROC
>
>*In COM client:
>oDevice=CREATEOBJECT('MyProg.MyForm',.T.)
>
>Thanks,
>
>Jon
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform