Displaying values of variables to a Form
I'm using Borland C++ Builder 5 and i simply want to be able to have an area on a form that displays the value of a certain variable. should i use a label or something else?
an example of what i want to do... lets say there are two buttons on my form, button1 and button2. if you click button1, it sets x=10. if you click button2, it sets x=20. there is also an area on the form that is displaying whatever x is currently equal to. so after clicking button1, it will display 10. after clicking button2 the area will display 20.
Whats the best way to go about doing this?