Understanding Record Class

A record object, instantiated from the Record class, is a single instance of a data within a row and is based on a record definition. A record object consists of one to n fields.

If a record object is instantiated using GetRecord (either the function or the method), the record object that is instantiated references the record from the current row in the data buffers, and its associated data.

If a record object is instantiated using the CreateRecord function, the record object that’s instantiated is a freestanding record definition with its component set of field objects in the data buffer. The fields created by this function are initialized to null values, that is, they do not contain any data. Default processing is not performed. You can select into this record object using the SelectByKey method. You can also select into this record object using SQLExec.

CopyFieldsTo is a commonly used method for the record class. Name, IsChanged, and FieldCount are commonly used properties.

The record class is one of the data buffer access classes.