TCustomJSONPropStorage.DoWriteString procedure
Performs actions needed to write the specified Section and Ident to the JSON storage mechanism as a String type.
Declaration
procedure DoWriteString(const Section: string; const Ident: string;
const Value: string); overrideArguments
Section | Name for the section where the value is stored. |
Ident | Name for the identifier where the value is stored. |
Value | String value stored in the method. |
Description
DoWriteString is an overridden method used to implement the
WriteString method in the TCustomPropertyStorage ancestor. DoWriteString
ensures that
Value is converted from the UTF-8 encoding used in the
argument to the UTF-16 encoding (UnicodeString) used in JSONConf (TJSONConfig).
The Value argument is stored using the identifiers in the Section
and Ident parameters. They are converted from the their
representation as dotted-LCL component names and properties to the '/'-
delimited XPATH-like notation. For example:
'TApplication', 'Form1.Width' => 'TApplication/Form1/Width'
Use active to enable or disable read and write operations to the JSON property storage mechanism.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
