Hi
i think it's a simple question - but i'm just beginning to learn c++, so..... ;-)
How can i call a function or a sub from within another function/sub ?
I know there is a statement like:
result = Function_to_call(input);
,but this doesn't work in my case:
void __fastcall TForm2::Button1Click(TObject *Sender)
{
//Close that form
Form2 -> Close();
}
//------------------------
void __fastcall TForm2::Beenden1Click(TObject *Sender)
{
//Also Close the form -> How to call the function above?
//what code do i need here?
}
//------------------------
BTW: Does anybody know a good online-tutorial / or a book for learning C++ ?
Thanks a lot,
bateman23
---------------------------------------
Visit me @:
i think it's a simple question - but i'm just beginning to learn c++, so..... ;-)
How can i call a function or a sub from within another function/sub ?
I know there is a statement like:
result = Function_to_call(input);
,but this doesn't work in my case:
void __fastcall TForm2::Button1Click(TObject *Sender)
{
//Close that form
Form2 -> Close();
}
//------------------------
void __fastcall TForm2::Beenden1Click(TObject *Sender)
{
//Also Close the form -> How to call the function above?
//what code do i need here?
}
//------------------------
BTW: Does anybody know a good online-tutorial / or a book for learning C++ ?
Thanks a lot,
bateman23
---------------------------------------
Visit me @: