Announcement

Collapse
No announcement yet.

getBarState vs getBarState()

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

  • getBarState vs getBarState()

    I don't know if this is a bug or not, but if

    getBarState

    is used the values expected are not returned.

    One must use getBarState().

    Also, no error is reported in the first case.

  • #2
    Hello dloomis,

    No bug here. getBarState() is a function, so it requires the parentheses to execute. Just basic syntax for calling functions. The reason you don't get an error just using getBarState is because JavaScript is a soft-typed language, which means you do not have to declare variable explicitly. Your formula just thinks you've created a variable called getBarState.
    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


    • #3
      You are right, of course.

      I have been tripped up on this so many times.

      Maybe now I'll remember.

      Comment

      Working...
      X