Hi, I am about to take my developer exam again. I can remeber last time that there werer questions about the number of bytes that an integer "had" (it also asked about string types and decimal types if I remeber right). Does anyone here happen to know how many bytes each datatype occupies in memory?
Another thing I have seen is about the number of dataitems that you can have in a report, or dataport. Does anyone know these too?
Thanks a lot!
Matt.
Comments
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Integer 32 bit = 4 bytes
String 1024 chars = 1024 bytes
Text of size N = N bytes
DateFormula = 32 bytes
Decimal = 12 bytes
Boolean = 4 bytes (actually it is an integer)
Integer = 4 bytes
Date = 4 bytes
Option = 4 bytes (actually it is an integer)
BLOB = 8 bytes + the size of the BLOB. (but I am not exactly sure about this one)
DateTime = 8 bytes
Time = 4 bytes
BigInteger = 8 bytes
Duration = 8 bytes
GUID = 16 bytes
TableFilter = 252 bytes
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Also note that sizes may be rounded up to 4-byte alignment for performance reasons in many cases.
See section "Choosing Data Types" in the "Table Fundamentals" chapter of the Application Designers Guide.
I'll look in my manual because they list all dataitems and how many bytes they hold. Just received the Development 1 Intro to C/SIDE manual cause I'll be writing my exam in the next 2 to 3 months.