Page 1 of 1
difference between USES and INCLUDE
Posted: Tue Jul 10, 2007 8:18 pm
by PaPi
Hi, I don`t see the difference between the commands USES and INCLUDE.
I wish the difference how to do it, bat which one can I have in practice, and why?
best regards
PaPi
difference between USES and INCLUDE
Posted: Thu Jul 19, 2007 6:07 pm
by wellnounpun
Uses is for lib files, Include is for normal source files.
difference between USES and INCLUDE
Posted: Fri Jul 20, 2007 6:34 am
by PaPi
Yes, Marco, bat
1. I should say not: both contains basic code (see:led.lib!)
2. I can`t wish the correct location of both commands in the source code
best regards
PaPi
difference between USES and INCLUDE
Posted: Mon Jul 23, 2007 3:50 pm
by Marco
hi,
mostly the old basic include command contains a serial of routines that you can use in different programs.
So you have only put in the include command at the start of the program and you got your universal routines and constants.
include "myfunctions.bas"
I build in the uses command wich can operate without an extension altough the file must have the lib extension and must be in the folder where fnxcompiler is.
you can easely use more files the syntax look like this
uses led,math,myform, etc.
It is shorter to type. An it include led.lib math.lib myform.lib wich could contain universal routines.
However you could use the command with whatever you like.
best regards