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

RE: [amibroker] Embed IIF in Title ?



PureBytes Links

Trading Reference Links




<SPAN 
class=108394916-18022003>HB,
<SPAN 
class=108394916-18022003> 
How 
about Writeif()??
<SPAN 
class=108394916-18022003>
Title = <FONT color=#ff00ff 
size=2>"Volume " + <FONT color=#0000ff 
size=2>WriteVal(VM,<FONT color=#ff00ff 
size=2>1.0) + <FONT color=#ff00ff 
size=2>"," + <FONT color=#0000ff 
size=2>WriteVal(VT,<FONT color=#ff00ff 
size=2>1.0) + <FONT color=#ff00ff 
size=2>"," +<FONT color=#0000ff 
size=2>WriteIf(VH==<FONT color=#ff00ff 
size=2>0, <FONT color=#ff00ff 
size=2>"000", <FONT color=#0000ff 
size=2>WriteVal(VH,<FONT color=#ff00ff 
size=2>1.0));
<SPAN 
class=108394916-18022003> 
 Jayson 
<FONT face=Tahoma 
size=2>-----Original Message-----From: HB 
[mailto:hossamb@xxxxxxxxxxxx]Sent: Tuesday, February 18, 2003 11:34 
AMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] Embed 
IIF in Title ?Hello,Is is possible to embed an 
IIf statement in a Title statement ?I'm trying to create a title which 
displays the volume with commaseperators.Here's what I have so far 
but the IIF is causing problems.VM = (V-V%1000000)/1000000;  // 
volume millions partVT = V%1000000/1000;   // volume thousands 
partVH = V%1000;  // volume hundreds partTitle = "Volume " + 
WriteVal(VM,1.0) + "," + WriteVal(VT,1.0) + "," +IIF(VH==0, "000", 
WriteVal(VH,1.0));The reason I have the IIF instead of a simple 
WriteVal(VH,1.0) for the lastpart is in case it is "000".  It would 
show up as just "0".  This reasoningwould also apply to the VT 
number.Thanks,HBPost 
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. 







Yahoo! Groups Sponsor


  ADVERTISEMENT  









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 the Yahoo! Terms of Service.