Topic: Two OnClick Scripts for one button

Hi
I have two separate script for one button. both of them should be OnClick. Is it possible? If not, what is the solution?
For example: The main button which saves the project has two scripts:
One Script is CopyTo command  and it save the DBFile in a directory
and the other script is "CheckDublicate"

Re: Two OnClick Scripts for one button

Hello Identity,
Yes, this is possible.
All you need to do is write your two procedures (copyto and checkduplicate) and then attach them to your OnClick event
So, a simple example to show how
**************************************
procedure copyto;
begin
     form3.edit1.text := 'GoodBye';
end;

procedure checkduplicate;
begin
    form3.label4.caption := 'Cruel World';
end;


procedure form3_OnClick (Sender: string; Action: string);
begin
  copyto;
  checkduplicate;
end;
*****************************************************
Hope this helps,

Derek.

Re: Two OnClick Scripts for one button

Nothing prevents you put two scripts for one event, just line by line.

Dmitry.