More undocumented programming limitations in the HP Prime


Well, I've found another undocumented limitation with PPL programming. It seems that the LOCAL declaration is limited to a paltry 7 entries, after which it will return a syntax error message when the program is checked. Beyond 7 entries it is necessary a add a second LOCAL declaration for the additional entries, and even more declarations if there are more than 14 entries. This limitation is neither mentioned in the Prime Help nor in the User Guide. Also, the calculator message "syntax error" is really not pertinent, since the statement is syntactically correct, and the message should be something like "exceeds maximum number of 7 entries". A lot of work is needed in documenting the usage of PPL.

Edit. Well after adding a second LOCAL statement, it now appears that the limitation has become 8 entries per LOCAL statement. This is totally confusing.

Edited: 3 Nov 2013, 1:36 p.m.


The limit is 8 for global EXPORTed, global non EXPORTed and LOCAL variables

I got an unofficial information that there is a limit of 16 parameters to functions.

and variables declaration use 2 parameter for each variable

The name and a value


use 2 parameters, thus the limit to 8.

An unusual thing is that the value of a program level variable is set only once at parse time. multiple runs of a program do not reset the global variable value until you go to program editor which reparse the program.



Here is some info on LOCAL

Edited: 3 Nov 2013, 5:58 p.m.


Thanks, Alberto. I missed that earlier thread.

Possibly Related Threads...
Thread Author Replies Views Last Post
  Programming workaround for "prepend" HP PRIME Marek Russ 4 814 11-29-2013, 05:46 AM
Last Post: Marek Russ
  hp prime - programming with lists giancarlo 3 755 11-10-2013, 02:13 AM
Last Post: Giancarlo
  HP Prime Programming Tutorial #3: WHILE, INPUT, KILL, REPEAT, GETKEY Eddie W. Shore 5 1,007 11-07-2013, 12:25 AM
Last Post: Han
  HP Prime - programming bluesun08 2 627 11-04-2013, 04:31 PM
Last Post: bluesun08
  HP Prime questions: I/O and Meta programming Andy Gryc 2 641 10-31-2013, 11:22 PM
Last Post: Andy Gryc
  HP Prime Programming Tutorial #1: LOCAL, RETURN Eddie W. Shore 6 1,211 10-26-2013, 08:42 PM
Last Post: Miguel Toro
  HP Prime Programming Tutorial #2: MSGBOX, IF-THEN-ELSE, PRINT, FOR Eddie W. Shore 0 543 10-26-2013, 03:51 PM
Last Post: Eddie W. Shore
  HP Prime : Programming and the Comma Miguel Toro 7 1,129 10-25-2013, 12:18 PM
Last Post: Miguel Toro
  HP Prime Programming: LOCAL Alberto Candel 3 632 10-07-2013, 01:31 AM
Last Post: cyrille de Brébisson
  HP Prime Programming options Egan Ford 8 1,028 10-06-2013, 10:44 AM
Last Post: Eddie W. Shore

Forum Jump: