TParamsFile.getValue<T> Method
Overloads
| getValue(string, string) |
Get the string value for key parameter with an empty string as default value |
| getValue(string, Boolean) |
Get the boolean value for key parameter with False as default value |
| getValue(string, Cardinal) |
Get the cardinal value for key parameter with zero as default value |
| getValue(string, Integer) |
Get the integer value for key parameter with zero as default value |
| getValue(string, Single) |
Get the single value for key parameter with zero as default value |
| getValue(string, TDateTime) |
Get the TDateTime value for key parameter with December 30th 1899 at 12:00 as default value |
| getValue(string, TDateTimeStorrageFormat, TDateTime) |
Get the TDateTime value for key parameter with December 30th 1899 at 12:00 as default value |
| getValue(string, TJSONValue) |
Get the JSON value for key parameter with nil as default value |
| getValue<T>(string, T) |
Try to get the value of "Key" as type T. Returns the Default value if it doesn't work. |
Get the string value for key parameter with an empty string as default value
function getValue(key: string; default: string = ''): string
Parameters
- key
- string
- default
- string
Returns
Get the boolean value for key parameter with False as default value
function getValue(key: string; default: boolean = False): boolean
Parameters
- key
- string
- default
- Boolean
Returns
Get the cardinal value for key parameter with zero as default value
function getValue(key: string; default: cardinal = 0): cardinal
Parameters
- key
- string
- default
- Cardinal
Returns
Get the integer value for key parameter with zero as default value
function getValue(key: string; default: integer = 0): integer
Parameters
- key
- string
- default
- Integer
Returns
Get the single value for key parameter with zero as default value
function getValue(key: string; default: single = 0): single
Parameters
- key
- string
- default
- Single
Returns
Get the TDateTime value for key parameter with December 30th 1899 at 12:00 as default value
function getValue(key: string; default: TDateTime = 0): TDateTime
Parameters
- key
- string
- default
- TDateTime
Returns
Get the TDateTime value for key parameter with December 30th 1899 at 12:00 as default value
function getValue(key: string; DateFormat: TDateTimeStorrageFormat; default: TDateTime = 0): TDateTime
Parameters
- key
- string
- DateFormat
- TDateTimeStorrageFormat
- default
- TDateTime
Returns
Get the JSON value for key parameter with nil as default value
function getValue(key: string; default: TJSONValue = 0): TJSONValue
Parameters
- key
- string
- default
- TJSONValue
Returns
Try to get the value of "Key" as type T. Returns the Default value if it doesn't work.
function getValue<T>(const key: string; const Default: T): T
Type Parameters
- T
Parameters
- key
- string
- Default
- T
Returns
Remarks
This function use TMonitor to lock the JSON storrage and can be used in multi threaded projects.