Calling convention: CIP_MatrixToCSV(Matrix: VariantArray, "Filename": String)
Description: Converts a two-dimensional Variant array to a micro-data container and writes it as a CSV file.
Parameters:
Matrix = Two-dimensional Variant array to export.
Filename = Full path of the output CSV file.
Returns: No value. A non-array first argument or missing second argument raises an exception.
Availability: Desktop main-application mode. The current Windows decimal separator determines whether comma or semicolon is used as the CSV field delimiter.
Example:
ResultArr := CIP_SQLMatrix("", "SELECT * FROM OEE_USER", RowCount, FieldCount);
CIP_MatrixToCSV(ResultArr, "C:\Download\Matrix.csv");