[fpc-pascal] Assigning value to ftVariant datatype& varbytes-still stuck
Ludo Brands
ludo.brands at free.fr
Mon Aug 8 13:18:53 CEST 2011
> > 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 a
> pointer to memory containing the actual data? Just guessing...
>
Yes, a pointer or the actual data for basic types. Sizeof(variant) is 16.
Copying only 10 bytes is clearly not working, even for the simple datatypes.
Ludo
> Anyway, once again thanks a lot for the help, I've updated my
> test code and posted http://bugs.freepascal.org/view.php?id=19930
>
> Reinier
> _______________________________________________
More information about the fpc-pascal
mailing list