Topic: Calling an existing procedure
Is it possible to call an already existing procedure from a procedure?
My Visual Database → Script → Calling an existing procedure
Is it possible to call an already existing procedure from a procedure?
Yes, sure.
Ok, and what is the syntax as I am not yet familiar with Delphi / Pascal?
procedure Form1_Button1_OnClick (Sender: string; var Cancel: boolean);
begin
procedure1;
end;
procedure procedure1;
begin
procedure2;
end;
procedure procedure2;
begin
ShowMessage('Hello from proc 2');
end;
Ah ok, I thought it would be possible to call procedure Form1_Button1_OnClick from another procedure...
Why not, you can.
procedure Form1_Button1_OnClick (Sender: string; var Cancel: boolean);
begin
ShowMessage('call from proc 1');
end;
procedure procedure1;
begin
Form1_Button1_OnClick('', False);
end;
Ok, I will have to work on that, thank you Dmitry. I need some exercices to get it right
My Visual Database → Script → Calling an existing procedure
Powered by PunBB, supported by Informer Technologies, Inc.
Theme Hydrogen by Kushi