>When You push some button, Click event occured, so You can do this (If I undestood You right):
>
>>SCAN
> thisform.Next.Click()
> thisform.Edit.Click()
> thisform.Save.Click()
>ENDSCAN
>
Borislav:
I know you know this but he may not. Although technically correct, that would be bad design. Buttons with a lot of code in their Click() method may not be reusable, which breaks one of the main reasons for OOP in the first place. He should be better served by adding methods to the container object (a form in this case), like:
ThisForm.OnSave() or ThisForm.SaveAction() and call those from the ButtonSave.Click() and directly when used programatically.
See:
http://fox.wikis.com/wc.dll?Wiki~MethodsShouldNeverCallEventshttp://fox.wikis.com/wc.dll?Wiki~EventsShouldAlwaysCallMethods