CsvFileInputRecordStream.SetRecordPrototype
- Updated2026-02-03
- 1 minute(s) read
CsvFileInputRecordStream.SetRecordPrototype
Syntax
CsvFileInputRecordStream.SetRecordPrototype( prototype, mapping = "")
Purpose
Set the prototype associated with this CsvFileInputRecordStream .
Parameters
prototype As PropertyObject
[In] A container defining the prototype for this stream. The name and type of each subproperty correspond to the name and type of the column in the CSV file with the same index as the subproperty.
mapping As String
[In] Specifies the mapping from subproperties 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 subproperties 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 subproperties 2, 3, and all subproperties beyond 3 map to columns 0, 1, 2, etc. of the CSV file. The range list may also include individual subproperty names. For example, "Temperature, Pressure, 0-1" specifies that the subproperties "Temperature" and "Pressure", then subproperties 0 and 1 define columns 0-3 of the CSV file. For convenience, you can specify an empty string to specify all subproperties of the container define the columns in order. That is, an empty string is equivalent to "0-".
This parameter has a default value of "" .