On Mon, 21 Nov 2011, Frank Church wrote:

adapterVals: TStringList

adapterVals.Delimiter := ';';
adapterVals.DelimitedText := '192.168.1.2,00:0E:08:E0:7C:ED,Word Space';
adapterVals[0] = '192.168.1.2'
adapterVals[1] = '00:0E:08:E0:7C:ED'
adapterVals[2] = 'Word' - this should be 'Word Space'

Is this a bug or the expected output? If the delimiter is set to a comma it
shouldn't treat a space as a delimter as well.

A space is always treated special.

You should either enclose values with spaces in quotes, or set the
StrinctDelimiter property to true, in which case the space loses its special meaning.

I recommend the second.

Michael.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to