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

Re: [amibroker] 'Hello World' duplicate output in Guru



PureBytes Links

Trading Reference Links


Hello,
 
For simplicity Guru outputs all texts immediatelly without 
need to Write.
 
For example you can write
 
"Hello World";
 
in the commentary window and it will be 
displayed.
 
To disable this you should use EnableTextOutput( FALSE 
);
or _N function
 

EnableTextOutput<FONT 
face="Courier New">( FALSE ) 
;stringAFL = <FONT 
color=#ff00ff>"Hello World in Variable<FONT 
color=#ff00ff>";
<FONT face="Arial CE" 
size=2>EnableTextOutput( TRUE<FONT 
color=#000000> ) ;
WriteIF( 1 > 0, stringAFL,stringAFL);
 
or use
 
_N( stringAFL = <FONT 
color=#ff00ff>"Hello World in Variable<FONT 
color=#ff00ff>" );
WriteIF( 1 > 0, 
stringAFL,stringAFL);
Best regards,Tomasz Janeczkoamibroker.com
<BLOCKQUOTE 
>
----- Original Message ----- 
<DIV 
>From: 
Salil V 
Gangal 
To: <A title=amibroker@xxxxxxxxxx 
href="">amibroker@xxxxxxxxxxxxxxx 
Sent: Saturday, November 02, 2002 4:00 
PM
Subject: [amibroker] 'Hello World' 
duplicate output in Guru
<FONT 
size=2>
Friends,
Wrote a very simple script for Guru in AFL.  I'm confused about 
the duplicate output I'm getting. Following script produces 
duplicate output in the Commentary for 'Hello World in Variable".

EnableTextOutput<FONT 
face="Courier New">( <FONT 
color=#ff00ff>1 ) ;<FONT 
color=#000000>
string<FONT 
face="Courier New">AFL = <FONT 
color=#ff00ff>"Hello World in 
Variable"<FONT 
color=#000000>;
WriteIf<FONT 
face="Courier New">(<FONT 
color=#ff00ff>1><FONT 
color=#ff00ff>0<FONT 
color=#000000>,stringAFL,stringAFL);<FONT 
color=#000000>
WriteIf<FONT 
face="Courier New">(<FONT 
color=#ff00ff>1><FONT 
color=#ff00ff>0
<FONT 
color=#ff00ff>        <FONT 
color=#000000>,"Hello World 
HardCoded"
<FONT 
color=#ff00ff>        <FONT 
color=#000000>,"Hello World<FONT 
color=#ff00ff> HardCoded"
<FONT 
color=#000000>);
Any input about why ? And how to stop this sort of duplicate output ?
Regards,
- Salil V 
Gangal
<FONT 
color=#000000> 


Do you Yahoo!?<A 
href="">HotJobs 
- Search new jobs daily now Post 
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
href="">http://groups.yahoo.com/group/amiquote/messages/)Check 
group FAQ at: <A 
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Your use of Yahoo! Groups is subject to the <A 
href="">Yahoo! Terms of Service.