CreateValueArray([Query], [Fields], [Records], [IncludeFieldNames], [IncludesRecordNumbers])

Returns a new value array (represented by the LayoutTableValueArray object). You can display values of the array in the table by linking them with cells using the LayoutTableValueArray::Link or LayoutTableRange::SetArrayLink method. All arguments are optional, but when you specify an argument different from Query the Query should be specified as well. See the same name properties of the value array for details about arguments.