Variable organization


Results 1 to 12 of 12

Threaded View

  1. #5
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Wink

    Hi, Ioannis

    I believe PBP Variables are GLOBAL Variables ... and You'd better turn to "C" if you want LOCAL variables.

    or "another Basiç " ... Booooooooooooooo.


    Identifier is declared in the function or procedure Scope extends from the point where it is declared to the end of the current routine. These identifiers are referred to as locals.

    Now, let's say I do not understand clearly what you mean ...

    You simply could add a memo to the variable name like "Count_inter" or " Count_LCD "for your example ...

    I do not think RAM is THE problem ... as you have to preserve the "eventually overwritten" Variables !!!


    BTW ... I didn't find the Max. Variable Length in the Holy Manual ... ( 32 Characters ??? )

    Alain

    PS: Tell me You won't implement a " Variable Stack " ... tell me you won't ... lol
    Last edited by Acetronics2; - 12th March 2009 at 08:44.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

Similar Threads

  1. EEPROM Variables (EE_Vars.pbp)
    By Darrel Taylor in forum Code Examples
    Replies: 79
    Last Post: - 26th October 2012, 00:06
  2. Variable PWM PIC18F2431
    By trr1985 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 12th June 2009, 06:03
  3. Help with sound command in 2 programs
    By hyperboarder in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 5th July 2007, 20:36
  4. WORD vs BYTE variable lengths
    By bartman in forum General
    Replies: 0
    Last Post: - 28th November 2005, 21:16
  5. Storing a variable in EEPROM
    By Tissy in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 29th October 2005, 13:53

Members who have read this thread : 0

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

Posting Permissions

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