Announcement

Collapse
No announcement yet.

Error with percent R

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error with percent R

    PHP Code:
    var vPctR70 = new PercentRStudy(35);

    function 
    preMain() {
        
    setPriceStudy(false);
        
    setStudyTitle("PRCNT R");
    }

    function 
    main() {
             if (
    vPctR70.getValue(PercentRStudy.PERECENTR) < -50)setBarBgColor(Color.RGB(255,0,0));
      
            else if (
    vPctR70.getValue(PercentRStudy.PERECENTR) > -50)setBarBgColor(Color.RGB(0,255,0));
     
      return new Array(
            
    vPctR70.getValue(PercentRStudy.PERECENTR),
            
    null
        
    );


    i get an error that tells me that i cant convert it to an integer... what shall i do to remove that error....
    please help
    regards erilein

  • #2
    erilein
    Try replacing PERECENTR with PERCENTR
    Alex

    Comment


    • #3
      Re: Reply to post 'Error with percent R'

      In all three places...

      var vPctR70 = new PercentRStudy(35);

      function preMain() {
      setPriceStudy(false);
      setStudyTitle("PRCNT R");
      }

      function main() {
      if (vPctR70.getValue(PercentRStudy.PERCENTR) < 50)
      setBarBgColor(Color.RGB(255,0,0));

      else if (vPctR70.getValue(PercentRStudy.PERCENTR) > -50)
      setBarBgColor(Color.RGB(0,255,0));

      return new Array(
      vPctR70.getValue(PercentRStudy.PERCENTR),
      null
      );

      }
      >

      Comment


      • #4
        thank you ... hmmm... so the formula wizzard (where i first create the formulas to add something myself in efs editor after that) has a bug because he writes "vPctR10.getValue(PercentRStudy.PERECENTR)"

        maybe you can fix it next version...

        regards erilein

        Comment


        • #5
          Hello erilein,

          Thank you for bringing this to our attention. I've verified the error and have forwarded the information to our development team.
          Jason K.
          Project Manager
          eSignal - an Interactive Data company

          EFS KnowledgeBase
          JavaScript for EFS Video Series
          EFS Beginner Tutorial Series
          EFS Glossary
          Custom EFS Development Policy

          New User Orientation

          Comment


          • #6
            no problem... i get help here too so why i shouldnt tell you bugs


            regards erilein

            Comment

            Working...
            X