Syntax Error with “Sn” Argument in Statistics 2Var Functions - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html) +--- Forum: HP Prime (/forum-5.html) +--- Thread: Syntax Error with “Sn” Argument in Statistics 2Var Functions (/thread-11806.html) |
Syntax Error with “Sn” Argument in Statistics 2Var Functions - mark4flies - 11-15-2018 11:32 AM I am getting syntax errors for the first argument (Sn) when I call Statistics 2Var functions such as SetDepend(Sn,Cm) or Do2VStats(Sn). There were no such errors prior to the latest firmware update. Did the syntax change? The User Guide is from December, 2017, so I can’t tell if there was a change. Is there a correct syntax or work-around? Thanks! RE: Syntax Error with “Sn” Argument in Statistics 2Var Functions - Tim Wessman - 11-15-2018 11:52 AM I just tested it and it seemed to work fine here. Is your 2Var stat the active one? If not, you might need to qualify it. RE: Syntax Error with “Sn” Argument in Statistics 2Var Functions - Eddie W. Shore - 11-15-2018 04:56 PM See if you have the Sn checked; an unchecked Sn won't calculate. Syntax: CHECK(n) RE: Syntax Error with “Sn” Argument in Statistics 2Var Functions - mark4flies - 11-16-2018 12:21 PM Tim, I do not assume that the app is the current app so I always qualify the function calls and variable references. Eddie, thanks for reminding me to be sure that the S1 is enabled. All is well for now - thanks very much! RE: Syntax Error with “Sn” Argument in Statistics 2Var Functions - mark4flies - 11-16-2018 12:33 PM I was able to eliminate the syntax errors by changing S1 variable to a string "S1" in the function call. But now I get an invalid input error from the function call. If I remove the double quotation marks, I get a syntax error from the compiler. Here is the code: Code:
|