Board index » cppbuilder » TMemo

TMemo

Well, i have a trouble using a TMemo componet, is esay set the{*word*128}line,
usinf memo1->Lines->Strings[0]="fabinux";

But the second line don`t work out, i did as next:
memo1->Lines->Strings[1]="WELCOME";

What can i do??

 

Re:TMemo


Does the memo even contain 2 lines of text previously?  You can't change
non-existing lines.  If line 2 doesn't exist yet, use Add(), not Strings[],
ie:

    memo1->Lines->Add("WELCOME");

Gambit

Quote
"Fabian" <fabi...@latinmail.com> wrote in message news:3a8efb5c_2@dnews...
> Well, i have a trouble using a TMemo componet, is esay set the{*word*128}line,
> usinf memo1->Lines->Strings[0]="fabinux";

> But the second line don`t work out, i did as next:
> memo1->Lines->Strings[1]="WELCOME";

> What can i do??

Other Threads