48G compiled local variable problem - Printable Version +- HP Forums (https://archived.hpcalc.org/museumforum) +-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html) +--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html) +--- Thread: 48G compiled local variable problem (/thread-99036.html) |
48G compiled local variable problem - hal - 09-04-2006 Hi Folks,
Re: 48G compiled local variable problem - Thomas Okken - 09-04-2006 I'm surprised your program even executes -- according to the manual (page 29-16), there are only two allowed syntaxes for local variables:
<< -> name1 name2 ... namen 'algebraic' >> and
<< -> name1 name2 ... namen << program >> >> Apparently, if additional items exist after the algebraic or program, they are executed, but the local variables only apply to the first item that follows them. To fix your program, simply wrap the
'M' ->NUM 'A1' ->NUM 'A2' ->NUM bit inside << and >> delimiters and you should be OK. Regarding your question about purging programmatically: nothing could be easier; for example
<< 'A' PURGE >> will purge the global variable A. HTH, - Thomas
Edited: 4 Sept 2006, 10:48 a.m.
Re: 48G compiled local variable problem - John Cadick - 09-04-2006 Hello Hal: Thomas answer for purging variables in a program can be expanded if you wish to purge multiple variables.
{ var1 var2 var3 var4 . . . } Will get the job done for one or one hundred variables. I always end my programs this way because I really get aggravated by programs that leave the directory littered with variables.
John
Re: 48G compiled local variable problem - hal - 09-05-2006 Thanks for the responses...They got me going. |