General information
Category:
Forms & Form designer
>>>I created a secondary form using the forms wizard. Looks good, (top, bottom, prev, next, exit) buttons all work but I want to transfer the selected data to the underlying form when I press the exit button. If I put my save routine under the exit buttons properties, it transfers my data but no longer exits the the secondary form. What am I doing wrong?
>>>Suggestions are welcome.
>>>
>>>Barbara
>>
>>Barbara:
>>
>>I don't use the Forms Wizard, but the buttons that you describe are probably subclassed from another class. Since the RELEASE code is probably located in the parent class, you need to place DODEFAULT() after your code in the Click Event of the Exit button. Since you placed code in this event, the inherited behavior will not execute unless you do this.
>>
>>-Ed
>DODEFAULT() worked great! Thanks!
>
>Barbara
Regarding DODEFAULT()
I attended a lecture held by Drew Speedie, ( hope that last name
is spelled right ) Drew said that the DODEFAULT is not always
to be trusted. There are times it will not call the function
that you want it to call. Granted the model he was showing
where this function failed was much more complicated. His
suggestion was to get familiar with the subclassing syntax
and call the functions directly ( eg. txtbtns::Save() ).
Dan
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only