>>I have some navigation buttons (first,next,previous,last) that are in their own class so I can use them on my forms. They have standard code in them at the class level to move the record pointer accordingly. My question is can I add additional code for individual buttons on my forms which executes after the "base" code from the class definition or do I have write the complete code for each button?? (see my example below)
>>
>>Eg. My "Next" button should go to the next record but also grab a new value for a variable and requery my data (in a parameterized view) in a grid which should change as the data the "Next" button changes.
>>
>>mtia!
>>Mandy
>
>follow ed's example, but first subclass your navigation buttons class. this way you can use the scope resolution.
>
>in 5, you can just say
dodefault()>
>to do class code first,
>
>dodefault()
>*- code here
>
>btw, nice picture. i take it yours wasn't a copy of your driver's license, was it?
Just as an addition, you can use DODEFAULT() in VFP 5.0a but not in 5.0. It's one of the bugs fixed in 5.0a
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada
cmagee@metroland.comNever mistake having a career with having a life.