Hi,
Example:
given a string:
str := '2015-09-14 14:46:50 downloadrate (813 KB/s)'if i want to get the first word ( worddelim is space ) i use:
Result := ExtractWord(1 ,str,[' ']);Result is '2015-09-14'
That's clear :-))
But!
If i want to extract '(813 KB/s)', i have to extract the SECOND word!!
Result := ExtractWord(2 ,str,['( ', ')']);Result is '813 KB/s'
My question:
Why do i have to extract the SECOND word? The word inside () occurs just once!
Delphi 5 delivers the same Result so i'm sure i misunderstand something?!!
lhelp tells me:
Show quoted text 7 lines
Explanations are welcome.
Thanks!!
