Resident Attributes Functions

Prev Next

Introduction

Resident attributes are values which can be stored in dedicated files. In contrast to loading and saving variables, attributes are tuples consisting of attribute names and attribute values. Values can take any type, e.g. numeral, string, date, Boolean and parameter set. Attribute names can be either flat (just one name) or hierarchical (parameter set containing multiple names representng a sort of path name).

In contrast to Microsoft Windows registry, the B4P resident attributes is an operating-system independent solution to store small amounts of data or settings conveniently. One file may contain one or more settings. Thd data format used is JavaScript Object Notation (JSON).

If a nested sub-attribute is created, then the values associated to the attributes are blank strings "", and not void. Example: attribute write ( path[ ], file[ ], {local machine, local settings, date format}, "YYYY-MM-DD" ) will automatically assign "" to attribute name local machine, and local settings if not yet existing.


Procedures and Functions Provided:


Access resident attributes:
    attribute delete
    attribute listing
    attribute modify
    attribute read
    attribute remove
    attribute write