TSdfDataSet: what changed
Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.
| Old | New | Line | |
|---|---|---|---|
| 1 | 1 | **TSdfDataSet**  is a database component that implements text-based [[TDataSet]] in [[SDF]] format. | |
| 2 | 2 | ||
| 3 | 3 | ## Schema | |
| 4 | 4 | ||
| 5 | 5 | Record structure is derived from: | |
| 6 | 6 | ||
| 7 | 7 | - Schema property if assigned. Schema is TStringList so you can use for example: | |
| 8 | 8 | ||
| 9 | - | ||
| 10 | - | ||
| 9 | + | ``` pascal | |
| 10 | + | SDFDataSet1.Schema.CommaText := '"Field1=10","Field2=500"'; // or | |
| 11 | + | SDFDataSet1.Schema.Append('<Field>=<Size>'); | |
| 12 | + | ``` | |
| 11 | 13 | ||
| 12 | 14 | Where \<Field\> is FieldName and \<Size\> is size of TStringField which will be created | |
| 13 | 15 | ||
| 14 | 16 | - First line of text file if property FirstLineAsSchema is set to true | |
| 15 | 17 | ||
| 16 | 18 | ## See also | |
| 17 | 19 | ||
| 18 | 20 | - [[TDataSet]] | |
| 19 | 21 | - [[CSV|Usage example]] | |
| 20 | 22 | ||
| 21 | 23 | --- | |
| 22 | 24 | *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).* |
