Variable placement


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107

    Default Variable placement

    I normally define all my variables at the top of my programs, but I had a guy working for me that defined a bunch of variables about 2/3 of the way through the program. The code was written in such a way that the defines were not executed.

    But the code still worked. Does PBP just scan the entire file, look for the keyword 'VAR' and assign memory locations to the variables at that time, regardless of where they are?
    Charles Linquist

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Re: Variable placement

    Yes it does.

    However, a variable must be declared BEFORE it is used in the program.
    DT

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