Thank you. I'm a new user of Cbuilder and I'm not really familiar with the programm. The code does not work because Append and Insert need AnsiString and RichEdit->Lines[i] returns a TString. That's my dilema. I just can't make it work. So if you could just take a look on that I'd really...
I need some help with a RichEdit component.
I want to copy some lines from one RichEdit box to another RichEdit box, and I just don't seem to find the write code.
I want it to be something like this:
for(int i=0;i<14;i++)
RichEdit1->Lines= RichEdit2->Lines[i]
...something like this. Can anyone...
Well it's the same word in every line, " #define ", at the begining of the lines. That's why I tried to overwrite those 7 characters with 0, that's the loop for.
If it can't work within the code, I guess I could have another RichEdit box and cut the first word (delimited by a space. all the...
So do you have any idea how can I make the code work with the for included? I still need that line:D..
I need to get rid of the first word in every line. I want only the last part of the sentence(line).
(with that done my project is completed).
So if you can pls help, if not thanks anyway...
Thanks 2ffat.
I tried, but I don't know what I'm missing.The RichEdit box extends, like something is being written in it. But the text is not visible. Can you pls take a look?
thank you.
Hello. I'm not quite familiar with the BCB so pls help me with this.
I wrote this code:
-----------------------
ifstream in("D:\\config96.h");
ofstream out("D:\\raspuns.h");
string line;
while(getline(in,line))
if(line.find("CONFMODE")!= -1){
for(int i=0;i<7;i++) line[i]=0...
Thank you Salem for your advice. I did all of the tasks except the last one. I just can't seem to convert the string into AnsiString after I read and find my word in that file.
I tried to modify my file until all I have to do is to load the file into the RichEditBox. But if I do that, I can't...
hello. I'm a new user of CBuilder,..and I need some help.I want to read a file and work with lines, searching for a word.I want those lines to write them in a RichEdit box. How can I do that? (considering the fact that "istream" uses strings and RichEdit uses AnsiStrings?)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.