JVCL Help:TJvCustomCsvDataSet.AppendRowString

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

This allows you to add a new row to an open dataset, in CSV string form.


Pascal

 procedureAppendRowString(constRowAsString: string);


Parameters

Parameters Description
const RowAsString: string Description for this parameter


Description

AppendRowString allows you to add a new dataset row in ONE LINE of code, instead of writing: DataSet.Append;
DataSetFIELD1.Value := 'xxx';
DataSetFIELD2.Value := 'xxx';
.. one line for each field ...
DataSet.Post;
Instead, if your dataset had three columns ('NAME,ADDRESS,PHONE'), you could write: DataSet.AppendRowString('BOB,10 FRONT STREET,555-1212'); One common way of using this is to call GetRowAsString from one dataset, and then adding that row to another dataset, like this: CsvDataSet2.AppendRowString(CsvDataSet1.GetRowAsString);


See Also

TJvCustomCsvDataSet.GetRowAsString


About

Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page