-
LONG Data type
Hi everyone,
I recently purchased PicBasic Pro and am digging deep into a new design. So far I have found it amazing as a rapid development tool. Unfortunately the manual documentation leaves a lot to be desired...
Anyway, I have need for a LONG Data type for a number that will sometimes exceed what is achievable in 2 bytes. I attempted to define a variable as Long but the compiler does not see it as a valid data type. I know when I was reading up before I purchased PBP that version 2.50 supports Longs.
Please advise what I am doing wrong.
Thanks,
TR
-
You have to use PBL and you must be using 18F series chips, you select PBL in the compiler options menu under view.
-
Thanks Joe!
Thanks Joe!
It worked after selecting the "Use PBL" button under the view menu as you instructed.
So, what is PBL?
TIA
TR
-
The L in PBL stands for LONG.
You have the option to compile for Long usage or regular. If you do not need Longs then compile with the regular as code compiled with PBL is larger.
-
Aha..
Aha...
Thanks for that tidbit!