Sign in Join
Wiki copytemporary

TSdfDataSet: what changed

Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
11**TSdfDataSet** ![](/wiki-images/1/15/Tsdfdataset.png) is a database component that implements text-based [[TDataSet]] in [[SDF]] format.
22
33## Schema
44
55Record structure is derived from:
66
77- Schema property if assigned. Schema is TStringList so you can use for example:
88
9-`SDFDataSet1.Schema.CommaText := '"Field1=10","Field2=500"'; // or`\
10-`SDFDataSet1.Schema.Append('<Field>=<Size>');`
9+``` pascal
10+SDFDataSet1.Schema.CommaText := '"Field1=10","Field2=500"'; // or
11+SDFDataSet1.Schema.Append('<Field>=<Size>');
12+```
1113
1214Where \<Field\> is FieldName and \<Size\> is size of TStringField which will be created
1315
1416- First line of text file if property FirstLineAsSchema is set to true
1517
1618## See also
1719
1820- [[TDataSet]]
1921- [[CSV|Usage example]]
2022
2123---
2224*From the Free Pascal wiki, page "TSdfDataSet", as it stood on 2017-07-14 after a change by Avra, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*

Back to history