I am relatively new to Borland 2006 C++ Builder. I have a form which has about 6 buttons and a text box for selecting and inputting values respectively (e.g. Clicking on Button 1 should return "100" to a variable in the calling form. Likewise, entering 100 into the text box and pressing enter would do same. I have been able to return values from the text box e.g.
String amt = frmChoice->TxtBxt1->Text
However, I need help on how to return values to the calling forms variable when a user clicks one of the buttons instead of entering text in the text box.
Thanks in advance.