Logged out, click to login

JEDI Online help - Details

Back to unit JvCsvData.pas Back Edit Search Administration


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

RowAsString - Description for this parameter

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

See Also

Last changed by obones on 2009-01-05 18:01:39 CET

Copyright (c) 2004 by the JVCL Team; all rights reserved
Uses PclZip by phpconcept and parts of the PEAR library