DOC: Field-Page's example Type

Forum for discussion about the documentation project.
Post Reply
MrSwiss
Posts: 3910
Joined: Jun 02, 2013 9:27
Location: Switzerland

DOC: Field-Page's example Type

Post by MrSwiss »

Hi all,

the example Type bitmap_header should be re-coded as follows:
change all UInteger statements to ULong since, the definition states: unsigned INT32.

Code: Select all

Type bitmap_header Field = 1
    As UShort   bfType
    As ULong    bfsize
    As UShort   bfReserved1
    As UShort   bfReserved2
    As ULong    bfOffBits
    As ULong    biSize
    As ULong    biWidth
    As ULong    biHeight
    As UShort   biPlanes
    As UShort   biBitCount
    As ULong    biCompression
    As ULong    biSizeImage
    As ULong    biXPelsPerMeter
    As ULong    biYPelsPerMeter
    As ULong    biClrUsed
    As ULong    biClrImportant
End Type
Main reason being: FBC 64 would expand (UInteger) to 64bit-fields ...
fxm
Moderator
Posts: 12107
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: DOC: Field-Page's example Type

Post by fxm »

Yes.
KeyPgField → fxm [In example : modified bitmap's header for compatibility with 64-bit (UInteger => ULong)]
MrSwiss
Posts: 3910
Joined: Jun 02, 2013 9:27
Location: Switzerland

Re: DOC: Field-Page's example Type

Post by MrSwiss »

@fxm, thanks for the quick response.

BTW: just encountered something strange: Time-Stamp (in the History) is off by 5-7 Hours!
(depending on: logged in/out)
OK, 2 Hours between: UTC and CEST (can be explained), but the other 5?
Is Wiki on EST instead of UTC? ... Forum Time, seems to be UTC.
Boromir
Posts: 463
Joined: Apr 30, 2015 19:28
Location: Oklahoma,U.S., Earth,Solar System
Contact:

Re: DOC: Field-Page's example Type

Post by Boromir »

I think the forum time can be set from your profile. In "board preferences"
MrSwiss
Posts: 3910
Joined: Jun 02, 2013 9:27
Location: Switzerland

Re: DOC: Field-Page's example Type

Post by MrSwiss »

The difference (5 Hours) is between: Forum Time *native, (aka: not logged in) and the
Wiki-Time-Stamp, also *native.

*unmodified by user settings (that's what you're referring to)
Post Reply