Sets or replaces one Record to the RecordSet at the given index. Unlike
addRecord, an existing Record at that index is not shifted to preserve it.
If no index is specified, it adds the Record to the end of the RecordSet.