Data Type Size
<< Back
Here are most of the base data types and sizes in VDF/DF. I was a bit surprised
to find out that the size of Boolean is 1 because in C++, BOOL is basically an integer (which is 4 bytes).
Which means you have to be super careful when declaring C++ structs in VDF because Boolean in VDF is not the same size as BOOL in C++.
Some data types have 2 numbers in the comment because they are different in size between 32 bit and 64 bit DF.
Use UI
#COMMAND S
Showln "!1 " (SizeOfType(!1))
#ENDCOMMAND
s Address // 4 8
s BigInt // 8
s Boolean // 1
s Char // 1
s Currency // 8
s DWord // 4
s Date // 12
s DateTime // 16
s Decimal // 17
s Float // 4
s Handle // 4 8
s Integer // 4
s Number // 12
s Pointer // 4 8
s Real // 8
s RowId // 8 16
s Short // 2
s String // 4 8
s Time // 6
s TimeSpan // 16
s UBigInt // 8
s UChar // 1
s UInteger // 4
s UShort // 2
s Variant // 16 24
s WString // 4 8
InKey FieldIndex