Unit 'Classes' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

TMissingNameValueSeparatorAction

What to to with Name=value pairs if the separator is missing.

Declaration

Source position: classesh.inc line 898

type TMissingNameValueSeparatorAction = (

  mnvaValue,

  

Consider the line a value.

  mnvaName,

  

Consider the line a name with empty value.

  mnvaEmpty,

  

Consider it an empty line.

  mnvaError

  

Raise an exception if the Name=Value functionality is used.

);

Description

TMissingNameValueSeparatorAction is the type of the TStrings.MissingNameValueSeparatorAction property and determines what to do if in a TStrings descendent the NameValueSeparator is missing. It can have the following values:

mnvaValue
Consider the line a value.
mnvaName
Consider the line a name with empty value.
mnvaEmpty
Consider it an empty line.
mnvaError
Raise an exception if the Name=Value functionality is used.

See also

TStrings

  

Class to manage arrays or collections of strings.

NameValueSeparator

  

Value of the character used to separate name,value pairs.

TStrings.MissingNameValueSeparatorAction

  

What to do if NameValueSeparator is missing in a string.

TStrings.Values

  

Value parts of the name-value pairs in the list.

TStrings.Names

  

Name parts of the name-value pairs in the list.

TStrings.GetNameValue

  

Return both name and value of a name,value pair based on it's index.


Documentation generated on: Dec 24 2024