On Mon, 8 Sep 2008, Felipe Monteiro de Carvalho wrote:
> On Mon, Sep 8, 2008 at 10:51 AM, Martin Schreiber <[EMAIL PROTECTED]> wrote: > > Did you open an existing datafile? > > I am always working opening an existing datafile. So, you are thinking > that it calculates the size for the fields upon loading and then it > does not increase the field sizes when posting to the database? There are 2 ways: 1. When opening an existing file, the longest existing line length is used as the max record size if firstlineasschema is True. The lengths are not changed after that. 2. When creating a new file, the lengths are taken from the schema. So: I would imagine that in your case, you set firstlineasschema=False, and set the correct lengths in Schema. That should do it. A possible extension is that the schema is defined in the FieldDefs property, and that this is used to parse the file. Michael. _______________________________________________ fpc-devel maillist - [email protected] http://lists.freepascal.org/mailman/listinfo/fpc-devel
