Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Event object
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
Miscellaneous
Thread ID:
00268645
Message ID:
00268999
Views:
23
>I think the problem is the syntax of the command.
>
>>
>That line should be written as
>
>This.Add(ThisForm.pgfBizObj.Page6.ROLinesObj1)
>
>
>If the object already exists, and you've already checked the z-order according to your message, then all you have to pass the add method is the object reference.

OK, I see what you mean. I finally got all this to work correctly, at least so far ;) Thanks.

Here's what I ended up doing:

In my ChangeRateEvent() class I changed the Add() call in DefineParticpatingEntities() to:

THIS.Add('ROLinesObj1','ROLinesObj')
THIS.Add('LineCode','LineCodeObj')

and modified my ExecuteEvent() method so it read:

loROLines = THIS.Get("ROLinesObj1")
loLineCode = THIS.Get("LineCode")

Then I dragged this object back onto Page 6. This change made sure I was using the same object name so my Get() would work on the form and if I instanciated the ChangeRateEvent class by itself.

Surprisingly, if I override the DefineParticipatingEntities() on the form to:

THIS.Add('ROLinesObj1')
THIS.Add('LineCode','LineCodeObj')

It would fail again, so I took it out. I don't know if it's just creating a second instance of ROLinesObj or if it's using the one already on the form. Either way it seems to work OK.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Reply
Map
View

Click here to load this message in the networking platform