System.Classes.TStrings.QuoteChar

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property QuoteChar: Char read FQuoteChar write FQuoteChar;

C++

__property System::WideChar QuoteChar = {read=FQuoteChar, write=FQuoteChar, nodefault};

Properties

Type Visibility Source Unit Parent
property public
System.Classes.pas
System.Classes.hpp
System.Classes TStrings

Description

Specifies the quote character used by the DelimitedText property.

Use QuoteChar to get or set the quote character that is used to enclose individual strings in the DelimitedText property.

When QuoteChar is set to the null character, then DelimitedText does the following:

  • At reading, does not return quoted list items.
  • At assigning, does not check an assigning value for quote char.

That is, you can set QuoteChar to the null character to disable quoting in DelimitedText. To set the QuoteChar to the null character, do the following:

Delphi:

MyStringList.QuoteChar := #0;

C++:

MyStringList->QuoteChar = '\0';

See Also