Subject RE: [firebird-support] Help decoding XSQLVARs
Author Alan McDonald
> Hi,
>
> Does anybody have a piece of C code (or doc) that reads an XSQLVAR?
> Specifically, I need to decode the various number types into some
> generic format (bcd or double or whatever).
>
> The IB6 API Guide advice on this is to consult isql to find out how the
> number is stored :)
>
> Btw, is it still true that I have to align all those structures
> depending on the platform?
>
> Thanks!
> Cosmin.

if you download the source code fo FBReplicator (www.meta.com.au) you will
see a few examples of encoding and decoding these variables. It's in pascal
but you will see what it is doing.
Alan