Announcement

Collapse
No announcement yet.

"test_variable has no properties" error message

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

  • "test_variable has no properties" error message

    The following 3 lines of code execute successfully.

    var test_variable;
    test_variable=a_profit[day_num-max_contract_age];
    debugPrintln(" test_variable = " + test_variable);

    But then when I change the 3rd line as follows by adding ".toFixed(2)"
    debugPrintln(" test_variable = " + test_variable.toFixed(2));
    The error message "test_variable has no properties" is displayed.

    Please tell me what I am doing wrong.

    Thanks,
    Joe Miller

  • #2
    Re: "test_variable has no properties" error message

    Joe
    See this post in reply to the same question
    Alex


    Originally posted by jcm21
    The following 3 lines of code execute successfully.

    var test_variable;
    test_variable=a_profit[day_num-max_contract_age];
    debugPrintln(" test_variable = " + test_variable);

    But then when I change the 3rd line as follows by adding ".toFixed(2)"
    debugPrintln(" test_variable = " + test_variable.toFixed(2));
    The error message "test_variable has no properties" is displayed.

    Please tell me what I am doing wrong.

    Thanks,
    Joe Miller

    Comment


    • #3
      How embarrassing! I should have searched on the subject before submitting the question.

      As always, thanks again Alex.

      Comment


      • #4
        Joe
        My pleasure as always
        Alex


        Originally posted by jcm21
        How embarrassing! I should have searched on the subject before submitting the question.

        As always, thanks again Alex.

        Comment

        Working...
        X