[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [amibroker] Re: #INCLUDE filename ?!



PureBytes Links

Trading Reference Links

File name composition hardly looks possible, Fred.
Although either of  the commented lines work fine,
-----
Plot(C, "",10);
incfn = "cmo.afl";
#include<incfn>    
// #include"D:\Program Files\AmiBroker\AFL\Include\CMO.afl"
// #include<CMO.afl>
Plot(Cmo(C,14), "",5);
-----
dies with
#include<incfn>
---------------------^
#include error: File does not exist:
'D:\Program Files\AmiBroker\AFL\Include\incfn'
-----
Not too surprising consider that #include is a PREprocessor cmd.

Bob

-----Original Message-----
From: Fred [mailto:fctonetti@xxxxxxxxx]
Sent: Saturday, June 07, 2003 9:30 AM
To: amibroker@xxxxxxxxxxxxxxx
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/