Page 1 of 1

[Done]; PB5.31; pbcompiler.exe; /CONSTANT; quad???;

Posted: Thu Sep 17, 2015 7:39 am
by HanPBF
Sorry, is done: "only integer constant expressions allowed for an Enumeration"

Hello!

When I use a quad (64bit) constant value in PB IDE and start the program, everything works.

Code: Select all

#App	= 1134677777648066560
MessageRequester("App", Str(#App)) ; o.k.
When the same is given via commandline

pbcompiler.exe Test.pb /CONSTANT App=1134677777648066560

MessageRequester outputs 1329471488.

Btw, the constant is as big cuase it is a timestamp (Year<<49, Month<<45, etc.).
So, my workaround is using a constant as string.

Is it true that 64bits are not possible as constants given to pbcompiler.exe?

Thanks a lot!