Question on Clearing a multi-line text box

  • Thread starter Thread starter CT
  • Start date Start date
C

CT

Hi
I got a problem. I have just moved over for a bit from BCB
to VC++.NET 2003 and am struggling with just one function,
namely the TextBox->Lines->Clear().
It says it takes an array as the first argument, the index
to start at for the next and finally the total number of
items to clear. So I try this:

tbOutput->Lines->Clear(tbOutput->Lines,0,tbOutput->Lines-

as I Suspected this does not work. How do I clear a Text
Box (Using multi-line property == true, so its like a
memo).

Thanks for any help
-CT-
 
tbOutput->Text = "";

/claes


CT said:
Hi
I got a problem. I have just moved over for a bit from BCB
to VC++.NET 2003 and am struggling with just one function,
namely the TextBox->Lines->Clear().
It says it takes an array as the first argument, the index
to start at for the next and finally the total number of
items to clear. So I try this:

tbOutput->Lines->Clear(tbOutput->Lines,0,tbOutput->Lines-

as I Suspected this does not work. How do I clear a Text
Box (Using multi-line property == true, so its like a
memo).

Thanks for any help
-CT-
 
Back
Top