Board index » cppbuilder » Call Another ButtonClick Function

Call Another ButtonClick Function


2006-02-11 11:19:58 PM
cppbuilder109
Hi,
// FOR EXAMPLE =====================================
void __fastcall TForm1::Button1Click(TObject *Sender)
{
Button2Click(Sender);
}
//--------------------------------------------------------------------------
-
void __fastcall TForm1::Button2Click(TObject *Sender)
{
Button1Click(Sender);
}
//--------------------------------------------------------------------------
-
Can anyone solve my problem?
I will appreciate if you can.
Best regards,
Robert
 
 

Re:Call Another ButtonClick Function

"Robert" < XXXX@XXXXX.COM >escreveu na mensagem
Quote
Hi,

// FOR EXAMPLE =====================================
void __fastcall TForm1::Button1Click(TObject *Sender)
{
Button2Click(Sender);
}
//--------------------------------------------------------------------------
-

void __fastcall TForm1::Button2Click(TObject *Sender)
{
Button1Click(Sender);
}
//--------------------------------------------------------------------------
-


Can anyone solve my problem?
I will appreciate if you can.


Best regards,
Robert


Hi Robert,
And your problem is ????
The code you're showing conducts to an endless recursive call !
What are you trying to acomplish ?
Antonio
 

Re:Call Another ButtonClick Function

Sorry. I put my poor example. I have solved my problem. Thanks.
Robert
"Antonio Felix" < XXXX@XXXXX.COM dot pt>wrote in message
Quote

"Robert" < XXXX@XXXXX.COM >escreveu na mensagem
news: XXXX@XXXXX.COM ...
>Hi,
>
>// FOR EXAMPLE =====================================
>void __fastcall TForm1::Button1Click(TObject *Sender)
>{
>Button2Click(Sender);
>}
>
//--------------------------------------------------------------------------
>-
>
>void __fastcall TForm1::Button2Click(TObject *Sender)
>{
>Button1Click(Sender);
>}
>
//--------------------------------------------------------------------------
>-
>
>
>Can anyone solve my problem?
>I will appreciate if you can.
>
>
>Best regards,
>Robert
>
>

Hi Robert,

And your problem is ????
The code you're showing conducts to an endless recursive call !
What are you trying to acomplish ?

Antonio


 

{smallsort}