Use of INCLUDE


Closed Thread
Results 1 to 9 of 9

Thread: Use of INCLUDE

Hybrid View

  1. #1
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default Re: ise of INCLUDE

    What thread title do you want? I can fix it.

    Robert

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,624


    Did you find this post helpful? Yes | No

    Default Re: ise of INCLUDE

    Hi,
    No, INCLUDE will put the content of the file exactly where the INCLUDE statement is located. Variables must be prior to them being used.
    Code:
    ' This will work
    Test VAR BYTE
    Test = 5
    Code:
    ' This will not work
    Test = 5
    Test VAR BYTE
    /Henrik.

  3. #3
    Join Date
    Dec 2009
    Location
    Canada
    Posts
    68


    Did you find this post helpful? Yes | No

    Default Re: ise of INCLUDE

    Thank you Gentlemen,

    Demon, I wished to name it "Use of INCLUDE" but my finger is too thick for the keyboard

    Yes, I agree, declaration of variables before use leaves less room for errors, although makes a bit less flexible use of Includes. Probably I will split them into two. like include1_header.pbp and include1_main.pbp for not placing seldom used code into the first page of memory

Similar Threads

  1. Where are all the INCLUDE files??
    By Heckler in forum General
    Replies: 3
    Last Post: - 13th September 2011, 09:27
  2. Include File problem
    By lerameur in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 23rd March 2011, 18:44
  3. How to open INCLUDE file
    By SKOLS1 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 26th January 2011, 18:50
  4. can't find include file!
    By jimbostlawrence in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 10th November 2009, 09:44
  5. Need to download Include files
    By laflam_p in forum Off Topic
    Replies: 2
    Last Post: - 2nd September 2009, 14:39

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