Announcement

Collapse
No announcement yet.

drawTextAbsolute ... variable T

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

  • drawTextAbsolute ... variable T

    I am trying to use a variable within a drawTextAbsolute line.


    I have declared the variable Row in premain and that part works.

    I then have within function main,

    var textnum = "TopRow" + Row;

    Then,

    drawTextAbsolute(-20, textnum, sLR.toFixed(2), .......... ;


    I get an error concerning the "paremeter #2" as being invalid. If Row = 2, how do I get the variable textnum to be TopRow2 and be recognized in the drawText statement?

    Thanks in advance for your help,

    David

  • #2
    David,
    try drawTextAbsolute(-20, eval(textnum), sLR.toFixed(2), ..........
    should work then
    Rainer

    you can read about eval() here: http://kb.esignal.com/display/2/inde...94255065917969

    or
    Last edited by Rainer Bilek; 07-02-2014, 11:21 PM.
    Rainer

    Comment


    • #3
      Thanks Rainer, that worked flawlessly.

      Comment


      • #4
        Good David, glad that it works.
        Thanks for response....
        Rainer

        Comment

        Working...
        X