HP Forums

Full Version: Clear All Expression in App?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Can you share any ideas on how to best clear ALL of the expressions in an app, programmatically? (Like [Shift] [ ESC] does). I was wondering if there is such a thing as a fully qualified app_name.reset kind of thing?

Specifically, I'm working with the Advanced Graphing app...

Thanks,
-Dale-
Just set them to null strings. For example:

V0:="";

Code:

nullstring:="";
nullstring:=string(nullstring);
for n from 0 to 9 do
  cmd:="V" + n + ":=" + nullstring;
  expr(cmd);
end;

EDIT: Be aware that the number format could affect the way numbers are turned into strings.
Thanks. That was the way I had been doing it, but thought there may be a simpler way, perhaps using the esc shift, somehow.
Reference URL's