CsvFileOutputRecordStream.WriteRecordPrototype
- Updated2025-07-21
- 1 minute(s) read
CsvFileOutputRecordStream.WriteRecordPrototype
Syntax
CsvFileOutputRecordStream.WriteRecordPrototype( prototype, mapping = "")
Purpose
Write the specified prototype to the CSV file.
Parameters
prototype As PropertyObject
[In] A container or PropertyObject array defining the prototype for this stream. The name and type of each subproperty or array element define to the name and type of the column in the CSV file with the corresponding index.
mapping As String
[In] Specifies the mapping from fields in the prototype parameter to columns in the CSV file. The mapping is a comma-separated list of index ranges. For example, "0, 3-5, 8-7" specifies that fields 0, 3, 4, 5, 8, and 7 of the container correspond to columns 0-5 of the CSV file. The final range in the list may be open-ended. For example, "2, 3-" indicates that fields 2, 3, and all fields beyond 3 map to columns 0, 1, 2, etc. of the CSV file. The range list may also include individual subproperty or array element names. For example, "Temperature, Pressure, 0-1" specifies that the subproperties or array elements named "Temperature" and "Pressure", followed by those with indices 0 and 1 define columns 0-3 of the CSV file. For convenience, you can specify an empty string to specify all fields from the prototype parameter define the columns in order. That is, an empty string is equivalent to "0-".
This parameter has a default value of "" .