PDA

View Full Version : LONG Data type



TerdRatchett
- 10th February 2009, 01:59
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

Archangel
- 10th February 2009, 02:07
You have to use PBL and you must be using 18F series chips, you select PBL in the compiler options menu under view.

TerdRatchett
- 10th February 2009, 02:40
Thanks Joe!

It worked after selecting the "Use PBL" button under the view menu as you instructed.

So, what is PBL?

TIA
TR

mackrackit
- 10th February 2009, 04:19
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.

TerdRatchett
- 11th February 2009, 04:06
Aha...

Thanks for that tidbit!