Description: Creates a new offline record for a named object, or for the current object when ObjectName is NULL or empty.
Calling convention: AddNewRecord("ObjectName": String,[AIgnoreErrors:Boolean=True])
Parameters:
ObjectName: target object name; NULL or empty selects the parser's current object.
AIgnoreErrors: optional compatibility flag. The implementation reads it but currently always passes TRUE to the record-creation routine.
Returns: DATA_ID of the newly created record. NULL is returned when no target object is available; invalid names and creation errors raise an exception.
Availability: Default.
Example:
NewDataID := AddNewRecord("DailyProduction", false);