-
-
Notifications
You must be signed in to change notification settings - Fork 39
queryToCsv
Julian Halliwell edited this page Sep 20, 2021
·
5 revisions
Convert a query to a CSV string.
queryToCsv( query[, includeHeaderRow[, delimiter ] ] )
-
queryquery
-
includeHeaderRowboolean default=false: whether the query columns should be included as the first row of the CSV -
delimiterstring default=",": the single delimiter used in the CSV to separate the fields. For tab delimited data, use\tortabor#Chr( 9 )#.
Chainable? No.
data = QueryNew( "First,Last", "VarChar,VarChar", [ [ "Susi","Sorglos" ], [ "Frumpo","McNugget" ] ] );
spreadsheet = New spreadsheet();
csv = spreadsheet.queryToCsv( data );