Board index » delphi » Call an event within another event

Call an event within another event

I got codes written on the OnValidate event of Table1Field1.
The actural procedure name is

 procedure TForm1.Table1Field1Validate(sender: Tfield);

Now I'm going to call this procedure within TForm1.Table1BeforePost().
Is it possible ? How do I express the procedure within
TForm1.Table1BeforePost() ?

---
Kuo-Chien Kai
----------------------------------------------------------------
Computer & Communication Center | E-mail: kc...@cc.nthu.edu.tw
National Tsing Hua University   |  Phone: +886-35-715131-1123
Hsinchu, Taiwan 30043           |    Fax: +886-35-710776

 

Re:Call an event within another event


Quote
Kuo-Chien Kai wrote:

> I got codes written on the OnValidate event of Table1Field1.
> The actural procedure name is

>  procedure TForm1.Table1Field1Validate(sender: Tfield);

> Now I'm going to call this procedure within TForm1.Table1BeforePost().
> Is it possible ? How do I express the procedure within
> TForm1.Table1BeforePost() ?

I program in C++ with Borland C++ Builder, but I think that the Delphi
code would look like

procedure TForm1.Table1BeforePost( sender: TObject )
begin
    Table1Field1Validate( sender );
end;

/Pedro

Other Threads