Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Events
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
Miscellaneous
Thread ID:
00258630
Message ID:
00259460
Views:
18
>I've been coding up an event object this morning but I seem to be missing something. In the manual it shows adding some code to the DefineParticipatingEntities() method to instanciate any needed objects. So it would look like:
>
>
>MyEvent::DefineParticipatingEntities
>
>THIS.Add('MyObject','MyObjectObj')
>
>
>It also shows a method called THIS.Get(). The problem I'm having is that neither method actually exists in the class. So, both THIS.Add() and THIS.Get() fail.

First of all, are you sure you created your subclass from the CEvent class? Both methods do exist, and they're public. Make sure that your subclass's methods are also public. You also don't need to do the scope resolution call that you've shown.

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform