RE : RE : RE : [fpc-pascal] Assigning value to ftVariant datatype varbytes-still stuck

2011-08-09 Thread Ludo Brands
On 7-8-2011 19:50, Ludo Brands wrote: TBufDataset doesn't support ftVarBytes and ftVariant. Variants are complex objects and aren't stored by just copying bytes. Don't use them with TBufDataset. Ludo ... cause they have some kind of structure that describes what kind of data

Re: RE : RE : [fpc-pascal] Assigning value to ftVariant datatype varbytes-still stuck

2011-08-08 Thread Reinier Olislagers
On 7-8-2011 19:50, Ludo Brands wrote: TBufDataset doesn't support ftVarBytes and ftVariant. Variants are complex objects and aren't stored by just copying bytes. Don't use them with TBufDataset. Ludo ... cause they have some kind of structure that describes what kind of data the

RE : RE : RE : [fpc-pascal] Assigning value to ftVariant datatype varbytes-still stuck

2011-08-08 Thread Ludo Brands
TBufDataset doesn't support ftVarBytes and ftVariant. Variants are complex objects and aren't stored by just copying bytes. Don't use them with TBufDataset. Ludo ... cause they have some kind of structure that describes what kind of data the variable/field actually contains and

[fpc-pascal] Assigning value to ftVariant datatype varbytes - still stuck

2011-08-07 Thread Reinier Olislagers
Hi list, Free Pascal Compiler version 2.5.1 [2011/08/04] for i386 While improving my fcl-db XML export code, I'm testing with ftVariant types in a bufdataset: FieldDef := FTestDataset.FieldDefs.AddFieldDef; FieldDef.Name := 'ftVariant'; FieldDef.DataType := ftVariant; This works:

RE : [fpc-pascal] Assigning value to ftVariant datatype varbytes -still stuck

2011-08-07 Thread Ludo Brands
Hi list, Free Pascal Compiler version 2.5.1 [2011/08/04] for i386 While improving my fcl-db XML export code, I'm testing with ftVariant types in a bufdataset: FieldDef := FTestDataset.FieldDefs.AddFieldDef; FieldDef.Name := 'ftVariant'; FieldDef.DataType := ftVariant; This

Re: RE : [fpc-pascal] Assigning value to ftVariant datatype varbytes -still stuck

2011-08-07 Thread Reinier Olislagers
On 7-8-2011 18:28, Ludo Brands wrote: FTestDataSet.FieldByName('ftVarBytes').AsString:=TestString; FTestDataSet.FieldByName('ftVariant').AsString:=TestString; Same problem as before: TBufDataset doesn't support correctly ftVarBytes and ftVariant and doesn't raise an

RE : RE : [fpc-pascal] Assigning value to ftVariant datatype varbytes-still stuck

2011-08-07 Thread Ludo Brands
Same problem as before: TBufDataset doesn't support correctly ftVarBytes and ftVariant and doesn't raise an SErrFieldTypeNotSupported like TMemDataset is doing. Look at TCustomBufDataset.GetFieldSize and you'll see that data length for ftVarBytes and ftVariant is arbitrarely set at

Re: RE : RE : [fpc-pascal] Assigning value to ftVariant datatype varbytes-still stuck

2011-08-07 Thread Reinier Olislagers
On 7-8-2011 19:50, Ludo Brands wrote: Same problem as before: TBufDataset doesn't support correctly ftVarBytes and ftVariant and doesn't raise an SErrFieldTypeNotSupported like TMemDataset is doing. Look at TCustomBufDataset.GetFieldSize and you'll see that data length for ftVarBytes and