Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Does COM allow parameters?
Message
 
 
To
31/07/2000 10:56:50
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00398803
Message ID:
00398830
Views:
18
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform