Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AddProperty in DLL's
Message
From
18/10/1999 13:15:31
 
 
To
18/10/1999 12:18:08
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00277666
Message ID:
00277743
Views:
29
>>>Any added property would only be available during the session that called the AddProperty
>>
>>Yes, I understand this. But they aren't available in CURRENT session outside the DLL
>>
>>For example :
>>.....

>I believe this is by design. The AddProperty would only be available during the method call that called it.

Well, you don't believe me :-))) Try the simple test
1) Create in VFP DLL dlltest with 1 object - testdll
2) Add method test
Lpara what
return pemstatus(This,what,5)
3)Build DLL
4) In Command Window
oTest=CreateObject("dlltest.testdll")
oTest.AddProperty("NewProperty")
*** New property added, but we can't get it!
oTest.NewProperty="!!!!!" && error
*** But we may sure that Newproperty exist!
oTest.Test("NewProperty") && retu .T.

Any comments?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform