|
The possible field types are:
booleanType true or false.
longType 32-bit signed number.
dateType the number of seconds since Jan 1, 1904.
stringType a variable length text handle.
doubleType double-precision floating point number.
binaryType unformatted data, variable-length.
In general, its best to add fields to a database before there are any records in it.
If a field is added to a database which contains records, ubase.lookupRecord will include an 'errn' entry with a value of 2 and an 'errs' entry in each table it produces for a record which lacks the new field. The errs entry will cause lookupRecord to
return false. One solution is to visit each record, do ubase.lookupRecord on that record (ignoring the false result), add an entry for each missing field to the table produced by ubase.lookupRecord, and add the completed record to the database replacing
the old record. [Consider copying the data from your existing database to a new database which has the additional fields, rather than adding fields to a database which contains records.]
|