Search found 54 matches

by Cosmin3
Tue Apr 15, 2008 8:32 pm
Forum: Support
Topic: loading a Unicode file line by line
Replies: 21
Views: 48973

Sorry to bother you again but I met a text where I can't use your code. Looks like that: Item[0] = 'LETHAL WEAPON 4.' IsFromNewLine = True Item[1] = 'Riggs, are you ...' IsFromNewLine = True I insert a character in first item Now it's like this: Item[0] = 'LETHAL' IsFromNewLine = True Item[1] = char...
by Cosmin3
Tue Apr 15, 2008 3:59 pm
Forum: Support
Topic: loading a Unicode file line by line
Replies: 21
Views: 48973

Seems to be working. Thank you.
by Cosmin3
Tue Apr 15, 2008 8:21 am
Forum: Support
Topic: loading a Unicode file line by line
Replies: 21
Views: 48973

Thank you but it doesn't work well if I don't insert the character.
If I have the text on HDD:

Hello World!
How are you?

Item[0] = 'Hello World!' and IsFromNewLine(0) = True.
If I save now like you said the text becomes:

Hello World!How are you?
by Cosmin3
Sat Apr 12, 2008 10:24 am
Forum: Support
Topic: loading a Unicode file line by line
Replies: 21
Views: 48973

Just one small problem. For example I have item "Hello world!" (index 0) which IsFromNewLine returns True. I insert a special character with Insert >> Symbol. Now I have 3 items: Item[0] = 'Hello' Item[1] = special character Item[2] = ' world!' I understand that IsFromNewLine(2) = True (th...
by Cosmin3
Tue Apr 08, 2008 5:02 pm
Forum: Support
Topic: loading a Unicode file line by line
Replies: 21
Views: 48973

I understand, thank you very much for your help.
by Cosmin3
Tue Apr 08, 2008 2:46 pm
Forum: Support
Topic: loading a Unicode file line by line
Replies: 21
Views: 48973

If I do that: ScaleRichView.RichviewEdit.LoadTextW(FileName, 0, 0, False); ScaleRichView.RichviewEdit.Format; Then it works ok. But If I do this: Stream := TFileStream.Create(FileName, fmOpenRead); SetLength(s, Stream.Size); Stream.ReadBuffer(PChar(s)^, Stream.Size); ScaleRichView.RichviewEdit.AddTe...
by Cosmin3
Mon Apr 07, 2008 2:41 pm
Forum: Support
Topic: loading a Unicode file line by line
Replies: 21
Views: 48973

Yes, I do that but it's not working...

I see that in editor http://www.imagehosting.gr/show.php/974 ... e.PNG.html

PS: I checked again the code that extracts the lines from text: works 100% fine.
The text should begin like that: "LETHAL WEAPON 4.#13#10Riggs,...".
by Cosmin3
Sun Apr 06, 2008 8:44 am
Forum: Support
Topic: loading a Unicode file line by line
Replies: 21
Views: 48973

I know this example (from Help), I tried that but it's not working...
This is because it's loading all the text at once - I'm loading line by line...
by Cosmin3
Sat Apr 05, 2008 12:26 pm
Forum: Support
Topic: loading a Unicode file line by line
Replies: 21
Views: 48973

loading a Unicode file line by line

Hi. I have a question. I'm loading a UTF8 Unicode into a string array like this: I load the entire text into a string then from the third character to the end I split in lines (at #13#0#10#0). After I make some modifications to the lines I want to load them to RichViewEdit then save all the text as ...