Difference between revisions of "TSdfDataSet"
From Free Pascal wiki
Jump to navigationJump to searchm |
m |
||
Line 3: | Line 3: | ||
==Schema== | ==Schema== | ||
Record structure is derived from: | Record structure is derived from: | ||
− | * Schema property if assigned. Schema is TStringList so you can use for example: SDFDataSet1.Schema.CommaText := '"Field1=10","Field2=500"'; or Schema.Append('<Field>=<Size>'); Where <Field> is FieldName and <Size> is size of TStringField which will be created | + | * Schema property if assigned. Schema is TStringList so you can use for example: |
+ | SDFDataSet1.Schema.CommaText := '"Field1=10","Field2=500"'; or | ||
+ | SDFDataSet1.Schema.Append('<Field>=<Size>'); | ||
+ | Where <Field> is FieldName and <Size> is size of TStringField which will be created | ||
* First line of text file if property FirstLineAsSchema is set to true | * First line of text file if property FirstLineAsSchema is set to true | ||
Revision as of 13:57, 3 February 2017
TSdfDataSet is a database component that implements text-based TDataSet in SDF format.
Schema
Record structure is derived from:
- Schema property if assigned. Schema is TStringList so you can use for example:
SDFDataSet1.Schema.CommaText := '"Field1=10","Field2=500"'; or SDFDataSet1.Schema.Append('<Field>=<Size>'); Where <Field> is FieldName and <Size> is size of TStringField which will be created
- First line of text file if property FirstLineAsSchema is set to true
See also