Page 3 of 3

Posted: Sat Jul 05, 2008 1:45 pm
by ACC
Lachie Dazdarian wrote:Not sure what is your problem with integer/short/long, as integer should cover it all for you. Just replace all your shorts and longs with integers. :P
This was a HUGE problem when I was trying to load file. I don’t know if it’s laziness or compatibly jeopardizing made on purpose but… man, it’s just so wrong.

To have (in QB)

Code: Select all

DIM SHARED i AS INTEGER
DIM SHARED j AS LONG
I must type (in FB)

Code: Select all

DIM SHARED i as SHORT
DIM SHARED j as INTEGER
It shouldn't be this way. I spend half a day to understand why my files couldn't be opened correctly... it just drove me nuts when I noticed that my (QB) integer were now 4 bytes instead of 2.

Posted: Sat Jul 05, 2008 5:51 pm
by burger2227
Doesn't make much sense to me either. That does give FB a wider range of integer values, but that is not compatable with your QB code either.

Like I have said before, they should have called it FREE C.

Ted