System.Classes.TStrings.NameValueSeparator

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

property NameValueSeparator: Char read GetNameValueSeparator write SetNameValueSeparator;

C++

__property System::WideChar NameValueSeparator = {read=GetNameValueSeparator, write=SetNameValueSeparator, nodefault};

Properties

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

Description

Indicates the character used to separate names from values.

Strings that contain the NameValueSeparator character are considered name-value pairs. NameValueSeparator defaults to the equal sign (=). TStrings defines various methods for accessing names and values and for searching for specific names.

Strings that are name-value pairs consist of a name part, the separator character, and a value part. Any spaces around the separator character are part of the name or value. This convention corresponds to the format used in many initialization files. For example:

DisplayGrid=1
SnapToGrid=1
GridSizeX=8
GridSizeY=8

See Also