Post Reply 
How do I save all the User settings, on the Prime? (SOLVED!)
11-03-2015, 05:31 PM
Post: #11
RE: How do I save all the User settings, on the Prime? (SOLVED!)
(11-02-2015 09:23 PM)Tyann Wrote:  
Quote:Great solution!
Merci
Thank you
Quote:Perhaps it may even be better to specify an argument where to save the settings rather than the default "Mode".
Pourriez-vous illustrer ?
Could you illustrate ?
[/quote]

Code:
EXPORT STOF(varname)
BEGIN
 HVars(varname):={HAngle,HFormat,HSeparator,HDigits,HComplex,Entry,Base,Bits​,Signed};
END;

EXPORT RCLF(varname)
BEGIN
 LOCAL l;
 l:=HVars(varname);
 HAngle:=l(1);HFormat:=l(2);
 HSeparator:=l(3);HDigits:=l(4);
 HComplex:=l(5);Entry:=l(6);
 Base:=l(7);Bits:=l(8);Signed:=l(9);
END;

You would ideally modify it to test the argument 'varname' and ensure it is a string, and that such a home variable exists. This slight modification allows save several instances of user settings and set them with ease. For example:

STOF("CurrentSettings");
RCLF("DiffEQSettings");
... do some differential equations stuff ...
... then switch over to RPN ...
RCLF("RPNSettings");
... now switch back to original settings ...
RCLF("CurrentSettings");

So in theory, one could have a number of different settings that can be used, and would only need to be created once.

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: How do I save all the User settings, on the Prime? (SOLVED!) - Han - 11-03-2015 05:31 PM



User(s) browsing this thread: 1 Guest(s)