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

Re: [amibroker] Embed IIF in Title ?



PureBytes Links

Trading Reference Links




Thank you Jayson & Anthony !
 
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  <A title=jcasavant@xxxxxxxxxxxx 
  href="">Jayson 
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Tuesday, February 18, 2003 
  11:59
  Subject: RE: [amibroker] Embed IIF in 
  Title ?
  
  <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<FONT color=#282828 
  size=2>(VM,1.0<FONT color=#282828 
  size=2>) + ","<FONT color=#282828 
  size=2> + WriteVal<FONT color=#282828 
  size=2>(VT,1.0<FONT color=#282828 
  size=2>) + ","<FONT color=#282828 
  size=2> +WriteIf<FONT color=#282828 
  size=2>(VH==0<FONT color=#282828 
  size=2>, "000"<FONT color=#282828 
  size=2>, WriteVal<FONT color=#282828 
  size=2>(VH,1.0<FONT color=#282828 
  size=2>));
  <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: <A 
  href="">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. 
  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. 







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.