LONG Data type


Closed Thread
Results 1 to 5 of 5

Thread: LONG Data type

  1. #1
    Join Date
    Feb 2009
    Posts
    41

    Default 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

  2. #2
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    You have to use PBL and you must be using 18F series chips, you select PBL in the compiler options menu under view.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  3. #3
    Join Date
    Feb 2009
    Posts
    41


    Did you find this post helpful? Yes | No

    Default 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

  4. #4
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    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.
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Feb 2009
    Posts
    41


    Did you find this post helpful? Yes | No

    Default Aha..

    Aha...

    Thanks for that tidbit!

Similar Threads

  1. Using Nokia LCD
    By BobP in forum mel PIC BASIC Pro
    Replies: 300
    Last Post: - 3rd May 2018, 04:47
  2. Nokia 3310 display text
    By chai98a in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 26th August 2007, 03:39
  3. Big characters on HD44780 4x20
    By erpalma in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 7th January 2007, 02:21
  4. LCD + bar graph
    By DynamoBen in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 5th October 2005, 14:50
  5. Sinus calculating !
    By Don Mario in forum mel PIC BASIC Pro
    Replies: 29
    Last Post: - 28th November 2004, 23:56

Members who have read this thread : 1

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts