J
John. S.
Hi,
1) How can I convert a Text property (textBox1->Text) or a String to an
integer?
(There is a "ToInt32()" member function but I couldn't
use it. int i = textBox1->Text.ToInt32(???);
2) I'd like to display in a loop:
abc 0 def
abc 1 def
abc 2 def
abc 3 def
abc 4 def
What I've found is:
for(int i = 0; i < 5; i++)
MessageBox::Show(String::Concat("abc ", i.ToString(), " def");
Is there an easier way to display that?
(I mean the Borland way: ShowMessage("abc " + IntToStr(i) + " def"); )
3)I'd like to add multiple lines to a textBox at runtime. The MultiLine
property of the textBox is true.
Line0
Line1
Line2
Line3...
How do I use the textBox1->Lines or textBox1->Lines->Item for this
purpose ?
Thanks...
1) How can I convert a Text property (textBox1->Text) or a String to an
integer?
(There is a "ToInt32()" member function but I couldn't
use it. int i = textBox1->Text.ToInt32(???);
2) I'd like to display in a loop:
abc 0 def
abc 1 def
abc 2 def
abc 3 def
abc 4 def
What I've found is:
for(int i = 0; i < 5; i++)
MessageBox::Show(String::Concat("abc ", i.ToString(), " def");
Is there an easier way to display that?
(I mean the Borland way: ShowMessage("abc " + IntToStr(i) + " def"); )
3)I'd like to add multiple lines to a textBox at runtime. The MultiLine
property of the textBox is true.
Line0
Line1
Line2
Line3...
How do I use the textBox1->Lines or textBox1->Lines->Item for this
purpose ?
Thanks...