Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
When is Private DE not Private?
Message
From
10/04/1998 12:21:25
 
 
To
10/04/1998 09:58:36
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00090627
Message ID:
00091102
Views:
31
>>Just to update you with what's going on, I tried your suggestion but it didn't work. After much though, I remember changing something in the contract form's parent form class so I when back and there it was! One stupid line of code in the parent form's Activate event.
>>
>>Anyway, I've learn to be very careful when I make any changes to base or parent class in the future. OOPs is great but if you screw up, debugging it sometimes is harder.
>>
>>Thanks again.
>>John.
>
>
>Wait a sec. Did it not work because of the line in the Activate? Did it work after you changed that line of code?

OK, let me try to explain what happened. I have a navigational toolbar which all forms share. The customer wanted me to display somewhere on the screen the total number of recs for any given form's main table (for contracts form, total number of contracts etc.). Thus, I added a label on the toolbar to display this and in the Activate event of the base form which all forms are derived from and where the toolbar is checked/loaded, I do a reccount and update the label. The problem was, I was issuing GO TOP after reccount so whenever any of the forms Activate event was called, the recno moved to the first rec.
Thus, in my case when the focus was returned to the calling form, the rec always move to the first rec. Very simple problem but since I was only checking code inside the form and not the parent form class I couldn't figure it out.

Thanks again.
John.
It's "my" world. You're just living in it.
Previous
Reply
Map
View

Click here to load this message in the networking platform