Ext.CreateVarRecord()

Returns objects of the subtype VarRecord.

Function Signature

 VarRecord Ext.CreateVarRecord( tableId )

Parameters

Parameter Type Description

tableId

int

A value from TS_TABLES. See Ext.TableId().

Return

Type Description

VarRecord

The newly-created VarRecord object containing a field list with all variable fields defined for the given table. The fields are created empty and can be written to individually or populated for a specific item using the Read() method.

Technical Details

SBM ModScript version: 11.3.

Notes

This function is similar to Ext.CreateAppRecord(). It may only be used on tables that hold variable field objects—a runtime error occurs if this function is called on a non-primary/auxiliary table.

Related Topics

Extension Functions