Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing values to a VFP COM object
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Passing values to a VFP COM object
Miscellaneous
Thread ID:
00152548
Message ID:
00152548
Views:
37
I created a simple COM object in VFP 6. In the object's Init, I assign the passed value to a public property:

* Start Init code
LPARAMETERS tcCursor

This.cCursor = tcCursor

RETURN .T.
* End Init code

When I create the object, the cCursor property is assigned .F. :

x = CREATEOBJECT("Project1.Class", "Test")
? x.cCursor && Returns .F.

Everything else seems to work. What am I doing wrong?

Thanks!
Reply
Map
View

Click here to load this message in the networking platform