|
Key and value names DataTree Key names Value names Different methods of DataTree require key and value names to be specified. All keys and values must be unique within the same parent key. Trying to create or write data to the value with existing name will cause the previous key or value usage and a new one won't be created. Writing some data to the key that doesn't exist will cause the creation of this key. data is always written in the format specified. Previously written data are lost when the new data is written. Reading some data from the key that doesn't exist won't cause the creation of this key. The reading method will return False as a result and a default value (if it has this parameter). Data stored in one format can be read in other format in some cases. For example, any data can be read as string (in case of binary data the string will contain encoded data). Integer data can be read as boolean.
Passing an empty key causes current key to be used (see CurrentKey property).
Empty value name means that the key itself is referred to. Keys can hold data as well as values.
|
|
