On Feb 17, 2008, at 11:49 AM, johnf wrote:

> I really could not figure out what caused the problem.  It is  
> diffcult to
> follow events in Dabo.  But I was able to determine it had something  
> to do
> with my VCR Class (VCR buttons).

        That's simple enough to start debugging. If the VCR button is the one  
for 'next', then override the form's next() method to say:

def next(self, dataSource=None):
        print "form next() called"
        super(MyFormClass, self).next(dataSouce)
        print "form next() done"

Do the same for the form's activeControlValid(), update() and  
refresh() methods. The next time that you run the form and get the  
error, you can get a good idea as to how far along the process got  
before the error happened. Do that a few times; if the error always  
occurs at the same point, then you've cornered your suspect. If not,  
then you have to start digging into stuff like refresh() and update()  
for your controls.

> The funny thing is I have been using the
> Class on other forms without issue.  But on this form it caused the
> Form.Close() method not to work correctly.

        Sounds like the problem isn't in the VCR class, but in the code that  
it triggers in your form.

-- Ed Leafe





_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]

Reply via email to