[fpc-pascal] Is there a way to create a Firebird embedded database programmatically?

2011-08-02 Thread Reinier Olislagers
When using the Firebird embedded database, it's nice to be able to create the database using only FreePascal/Lazarus. Is there a way to do this, e.g. using the SQLScript component, using something like this: const DatabaseFile = 'DATABASE1.FDB'; var CreateScript: TSQLScript; ScriptText: TStr

[fpc-pascal] Bump: Trouble setting/getting ftVarBytes field data in TBufDataset

2011-08-02 Thread Reinier Olislagers
On 2-8-2011 7:39, Reinier Olislagers wrote: > I've got trouble finding out how to fill and retrieve data for a > ftVarBytes field in a TBufDataset. > > .AsString doesn't seem to work well - if I fill it with the string > How do I fill this field? > I get back > How > > I tried SetData, which take