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

Ludo Brands ludo.brands at free.fr
Sun Aug 7 19:50:36 CEST 2011


> > 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 10. Compare 
> this with 
> > TMemDataset.MDSGetBufferSize.
> > 
> > Ludo
> > 
> I'm afraid you'll have to spell it out for me;


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




More information about the fpc-pascal mailing list