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

[amibroker] Re: refining FullName() in titles



PureBytes Links

Trading Reference Links




Yuki,

The reason it didn’t work is the == sign instead of = sign for your assignment. The == is a comparison of terms while = is an assignment of the 2nd to the 1st. 
if (Name() == "^225" OR Name() == "^IXJ" OR Name() == "@niko.1")
FullName() = FullName();
else
FullName() = StrMid(FullName(),3,30);

Of course, the following from Graham is more elegant:
It would be easier just to write this
Writeif (Name() == "^225" OR Name() == "^IXJ" OR Name() == "@niko.1",
FullName(),StrMid(FullName(),3,30) );
--
TH






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








Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links
To visit your group on the web, go to:http://groups.yahoo.com/group/amibroker/ 
To unsubscribe from this group, send an email to:amibroker-unsubscribe@xxxxxxxxxxxxxxx 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.