HP Forums

Full Version: CAS programs public beta 2
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Just noticed that CAS programs don't seem to run without at least one parameter, for example

#cas
Myprog():=
BEGIN

Doesn't run. ??

But Myprog(dummy) is ok. Has this always been like that? Maybe l never noticed. All my CAS programs have associated parameters.
It has been like this since before
Thanks for the feedback.
CAS programs may have 0 arguments, you can run them from commandline, just don't forget () after the program name.
(12-03-2017 07:20 PM)parisse Wrote: [ -> ]CAS programs may have 0 arguments, you can run them from commandline, just don't forget () after the program name.

When calling from Home or HP PPL you need to send at least one argument even if you do not need it.
In CAS mode it does not require arguments, from the history requires name + (), because without parentheses or round brackets, is called of the content or code of program
In HOME mode (numerical) require name(nop) =( , without parentheses or empty parentheses calls for the content of the code
Thank you - - yes, when calling the CAS progam you need parenthesis after the program name - - which can be empty. You do not need the parenthesis for Home programs with zero arguments, though, which threw me off.
Reference URL's