[Overview][Classes][Procedures and functions][Index] Reference for unit 'JSONPropStorage' (#lcl)

TCustomJSONPropStorage.JSONFileName

Name of the file where the session property names and values are saved in JSON format.

Declaration

Source position: jsonpropstorage.pas line 43

public property TCustomJSONPropStorage.JSONFileName : string
  read FJSONFileName
  write FJSONFileName;

Description

JSONFileName is a String property which contains the name for the JSON file used to read and write SessionProperties values in the class instance. Its value is used in GetJSONFileName to determine the file name used in JSONConf when the storage mechanism is allocated for the class instance. An explicit value assigned to the property is used when available.

When not assigned (''), a file name based on the executable file name is used. For example:

For Windows
The value in Application.Executable is converted to '.json' file extension and used as the JSON file name, like: 'D:\apps\project1.json'.
For UNIX-like platforms
The value in Application.Executable is converted to a hidden file in the HOME directory for the user, like: '~/babayaga/.project1'.

See also

TCustomJSONPropStorage.GetJSONFileName

  

Gets the value for the JSONFileName property.

TCustomJSONPropStorage.JSONConf

  

TJSONConfig instance used to store path/value pairs.


Version 4.0 Generated 2025-05-03 Home