Announcement

Collapse
No announcement yet.

getSecond/getMinute

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

  • getSecond/getMinute

    I am trying to develop a 120 second countdown for a 2 min bar. if I use getMinute, I get the current minute displayed as text, but when I use getSecond, all I ever get is "0." I want to see the second tick up. I will then develop code to subtract that from 120, etc. Or is there already such code somewhere?


    vCurSecond = getSecond(0);
    drawTextAbsolute(-8, 120, " Current BAR Second " + vCurSecond + " ", Color.RGB(255,255,0), Color.blue, Text.RIGHT | Text.RELATIVETOTOP | Text.RELATIVETORIGHT | Text.BOLD, null, 15, "SECOND" );

  • #2
    alexmihh,

    Take a look at the efs in this post and see if it does the trick.
    Excellent book on JavaScript for beginners

    Comment


    • #3
      Originally posted by FibbGann
      alexmihh,

      Take a look at the efs in this post and see if it does the trick.
      YES! EXACTLY what I need. Thanks

      Comment


      • #4
        Your welcome
        Excellent book on JavaScript for beginners

        Comment

        Working...
        X