Link to home
Start Free TrialLog in
Avatar of Chrysaor
Chrysaor

asked on

Simple C++ questions concerning Borland C++ Builder

1. I want to make the caption of label to be "The sum is:" SUM, where SUM is an integer. Label1->Caption = "The sum is" + SUM; doesn't work..
2. How do I change line in a label caption?

(these two questions are for borland c++ builder)

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Infinity08
Infinity08
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Chrysaor
Chrysaor

ASKER

It doesn't change the line with \n ..
>> It doesn't change the line with \n ..

What do you mean ? What do you see ?
Write

int intValue = 5;

Label1->Caption = "text" + AnsiString(intValue);

You can define WordWrap = true for the Label so it wraps the text if it is too long to fit into the current line. Or make 2 separate labels ;)