DataModel.exportToString
string exportToString(gda.types.DataModelIOFormat format, int[] cols, int[] rows, gda.set.Set options)Exports data contained in model to a string; the format is specified using the format argument, see the [gda.data_model.DataModel.exportToFile] documentation for more information about the options argument (except for the "OVERWRITE" option).
Warning: this function uses a #GdaDataModelIter iterator, and if model does not offer a random access (check using [gda.data_model.DataModel.getAccessFlags]), the iterator will be the same as normally used to access data in model previously to calling this method, and this iterator will be moved (point to another row).
See also [gda.data_model.DataModel.dumpAsString];
Parameters
format | the format in which to export data |
cols | an array containing which columns of model will be exported, or null for all columns |
rows | an array containing which rows of model will be exported, or null for all rows |
options | list of options for the export |
Returns
a new string, use [glib.global.gfree] when no longer needed