PureBytes Links
Trading Reference Links
|
Hello,
#include is PREPROCESSOR command therefore it is
executed BEFORE parsing stage and at this stage
there are no variables.
If you want conditional execution use this:
if( condition )
{
#include "fileA.afl"
}
else
{
#include "fileB.afl"
}
Actually BOTH files will be included (because they are
included before parsing, but only one part will be executed.
Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: "Fred" <fctonetti@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Saturday, June 07, 2003 6:30 PM
Subject: [amibroker] Re: #INCLUDE filename ?!
> TJ,
>
> Does that mean that one can NOT in some way use the concept of
>
> #INCLUDE filename
>
> where filename is dynamically built from other conditions that occur
> before the #INCLUDE statement in the code ?
>
> Thanks in advance,
>
> Fred
>
> --- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <amibroker@xxxx>
> wrote:
> > Hello,
> >
> > Should be:
> >
> > #include "C:\TheDirectory\TheFile.afl"
> >
> > or
> >
> > #include <TheFile.afl>
> >
> > (when it is placed in default include directory
> > definable in Tools->Preferences->AFL)
> >
> > Best regards,
> > Tomasz Janeczko
> > amibroker.com
> > ----- Original Message -----
> > From: "Fred" <fctonetti@xxxx>
> > To: <amibroker@xxxxxxxxxxxxxxx>
> > Sent: Friday, June 06, 2003 6:31 PM
> > Subject: [amibroker] #INCLUDE filename ?!
> >
> >
> > > TJ and/or anyone else knowledgable.
> > >
> > > I don't seem to be able to make
> > >
> > > #INCLUDE filename ... work
> > >
> > > where filename has previously been defined as if it were part of
> the
> > > actual statement i.e. filename = "c:\\Dummy.Afl" ...
> > > or "c:\Dummy.Afl" ... or "c:/Dummy.Afl"
> > >
> > > Is this not possible for some reason ? If it is can you please
> > > provide an example of how to do this ?
> > >
> > > Thanks, Fred
> > >
> > >
> > >
> > >
> > > Send BUG REPORTS to bugs@xxxx
> > > Send SUGGESTIONS to suggest@xxxx
> > > -----------------------------------------
> > > Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
> > > (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> > > --------------------------------------------
> > > Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> > >
> > > Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
> > >
> > >
> > >
>
>
> Send BUG REPORTS to bugs@xxxxxxxxxxxxx
> Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
> -----------------------------------------
> Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
> (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> --------------------------------------------
> Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get A Free Psychic Reading! Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/Lj3uPC/Me7FAA/ySSFAA/GHeqlB/TM
---------------------------------------------------------------------~->
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|