Forum > Free Pascal

FPC 2.6.4 released!

<< < (3/5) > >>

carmarri:
Hi,

I've just downloaded the latest version of Lazarus (1.2.4) and I've noticed that command Split is not working properly, while command ExtractStrings is working perfectly in the same string.
I'm trying to get the lines of a text.
My text is:

--- Quote ---Line 01
Line 02
Line 03
Line 04
Line 05
Line 06
Line 07
Line 08
--- End quote ---
My code:

--- Code: ---mylist := Split(#13#10, mytext);
--- End code ---
The result contains only from line 01 to line 07, so last item is missing.

This was working on previous versions.

How can I open an issue in bugtracker? Where should I place it: lazarus, FPC?

Thanks

Blaazen:
Where is function Split defined ?
Also, you didn't mention what OS you have. Anyway, use constant LineEnding rather than hard-coded #13#10, it's cross platform.

howardpc:
This useful Split function is in TAChartUtils


--- Code: ---function Split(AString: String; ADest: TStrings = nil; ADelimiter: Char = '|'): TStrings;

--- End code ---

however, it does not seem to be the one referred to above.

carmarri:
My apologies, because while trying to answer to @Blaazen, I realised that this funtion comes from a 3rd party library I'm currently using. I'm embarrassed!

Thank you very much for your support.

wbeppler:
hi,

i searched for newest version of fpc and found:
http://sourceforge.net/projects/fpc-cross/
the filename is fpc271.7z

is this a newer version or what means the number ?

thanks

wolfgang :-)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version