Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parameter not passed
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Parameter not passed
Miscellaneous
Thread ID:
00647770
Message ID:
00647770
Views:
41
Hi everybody,

I have a COM server with a LPARAMETERS in the INIT event :

Define Class MyClass As Custom Olepublic
SomeProperty = ""

Function Init
LParameters p_MyParameter

If PCount() = 1
This.SomeProperty = p_MyParameter
Else
This.SomeProperty = "No parameter"
EndIf

EndFunc

EndDefine

I compile this project as a DLL COM server....

In another application, I use the following syntax :

OInstance = CreateObject("MyComServerProject.MyClass","Parameter passed")
MessageBox(OInstance.SomeProperty)

The MessageBox always displays "No parameter"...

Any idea why ????

Thanks in davance...
********************************************

Benoit Grenier


encoder@silogic.ca (Job)
encoder@sympatico.ca (home)
Web site : www.silogic.ca
Next
Reply
Map
View

Click here to load this message in the networking platform