HP Forums
Error passing parameters - 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: Error passing parameters (/thread-14566.html)



Error passing parameters - cahlucas - 02-24-2020 11:17 PM

Hi all,
Hereby I want to report an oddity with passing on parameters. View the following program main: EXPORT TEST(a,b,c). This will not cause an error if you press "Cntrl.". View this head now:EXPORT TEST(size,row,col). This does result in an error message. Is this normal behavior for the HP Prime? And what can you do about this, if that is already possible? I look forward to an answer from one of you. Sincerely, Karel.


RE: Error passing parameters - Jacob Wall - 02-25-2020 12:10 AM

You can't use variable names that are command names, or otherwise reserved by the system. Pretty sure that's the issue here. "row" and "col" are CAS commands, "SIZE" is a Home command, can't recall if "size" would be allowed or not.


RE: Error passing parameters - cyrille de brébisson - 02-25-2020 07:13 AM

hello,

size is a buid in function and is therefore not allowed...
remember that most UPPERCASE functions inherited from older calcualtors are now working both in upercase and lowercase (and mixed case as a mater of fact).

Cyrille