2016. 12. 23. 9:14 keltezéssel, Bo Berglund írta:
Is there a quick way to split a string of whitespace separated values into the separate members?
Hi, I don't know quick or not... program Project1; uses Classes; var SL:TStringList; i:Integer; begin SL:=TStringList.Create; SL.DelimitedText:=' 0.000 0.000 7.000 0.000 29.6628'; for i:=0 to SL.Count-1 do begin WriteLn('*'+SL.Strings[i]+'*'); end; ReadLn; end. Gabor _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal