Welcome Guest. Please Login or Register. Apr 1st, 2018, 03:50am
ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018. We apologize Conforums does not have any export functions to migrate data. Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.
Thank you Conforums members.
Speed up Liberty BASIC programs by up to ten times!
Compile Liberty BASIC programs to compact, standalone executables!
Overcome many of Liberty BASIC's bugs and limitations!
!include
« Thread started on: Dec 13th, 2016, 01:13am »
I have used this successfully as last stmt in pgm Code:
!include lb45func.bas
But I am having problems trying to include other pieces of code. I keep getting a 'mistake' error on the !include line. I do put the !include in column one. Does the module being included have to be in the LBB folder? Are there restrictions on what code can be 'included'? Can I include basic code that is in a file with a file extension other than 'bas'? Any other things I may have missed in the documentation?
I am having problems trying to include other pieces of code. I keep getting a 'mistake' error on the !include line.
You are using the wrong syntax: it's not !include but 'include: the initial character must be an apostrophe ('), not an exclamation point (!). This is so the directive appears as an ordinary comment to LB 4 and is ignored; Liberty BASIC Workshop uses the same syntax (although the include feature works somewhat differently).
Quote:
I do put the !include in column one.
In LBB v3.07 it is no longer necessary to start the 'include in column 1.
Quote:
Does the module being included have to be in the LBB folder? Are there restrictions on what code can be 'included'? Can I include basic code that is in a file with a file extension other than 'bas'?
None of those restrictions apply so long as you specify a full file path, name and extension.