[fpc-pascal] Custom dataset help request: ftCurrency/ftDateTime returns weird data

Jonas Maebe jonas.maebe at elis.ugent.be
Fri Oct 4 16:03:12 CEST 2013


On 04 Oct 2013, at 15:43, Marco van de Voort wrote:

> In surprise that it compiles. If buffer is an (untyped) pointer,  
> buffer^ is
> a byte afaik

No, it's "untyped" (void). Just like an untyped var/out parameter,  
which you can also cast to anything and assign things to.

> (just sizeof() it).

That will return 0.

> You cast that byte to currency and then
> use it as lvalue?

That is no problem.


Jonas



More information about the fpc-pascal mailing list