Post Reply 
Prime app variables
12-13-2013, 07:28 PM
Post: #6
RE: Prime app variables
(12-13-2013 06:17 PM)Jonathan Cameron Wrote:  Thanks Han,

That was very helpful and I feel that helps answer several questions I had.

A couple more questions along these lines: Suppose you have a Solver-derived App and you set the equation by setting the value of E1 in the App code. Part 1: What is the correct syntax? Part 2: Suppose I edit the equation in the App [Symb] view. How can I restore the correct version of the equation as set in the App code? is there some way to "reset" an app back to original values? Or do i need a function for the App (via Menu perhaps) that resets all the equations?

-Jonathan

The easiest way to set E1 is via a string:

Code:
E1:="A*x+B*y-C=0"

I would make the operations explicit. Also ensure that the variables exist, otherwise you will get a Syntax Error. One may also use single-quotes (symbolic objects). So E1:='A*x+B*y-C=0' works just as well.

To reset the equations, you can use the [View] button. To set up the view list, you could do something like:

Code:

view "Reset all equations", RESET()
BEGIN
  E1:="A*x+B*y-C=0"; // default values here
  E2:="y=m*x+b"; // default values here
END;

When the user presses [View] they can choose "Reset all equations" to set the app to its default via the code for RESET(). You may also use START() in place of RESET() as this routine will always run when the app is first initialized.

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


Messages In This Thread
Prime app variables - Jonathan Cameron - 12-13-2013, 03:33 PM
RE: Prime app variables - Han - 12-13-2013, 04:02 PM
RE: Prime app variables - Jonathan Cameron - 12-13-2013, 05:27 PM
RE: Prime app variables - Han - 12-13-2013, 05:42 PM
RE: Prime app variables - Jonathan Cameron - 12-13-2013, 06:17 PM
RE: Prime app variables - Han - 12-13-2013 07:28 PM
RE: Prime app variables - Bob Frazee - 12-13-2013, 09:44 PM
RE: Prime app variables - Han - 12-14-2013, 02:36 AM
RE: Prime app variables - Bob Frazee - 12-14-2013, 03:19 PM
RE: Prime app variables - Han - 12-14-2013, 09:19 PM
RE: Prime app variables - Bob Frazee - 12-15-2013, 04:02 AM
RE: Prime app variables - Han - 12-15-2013, 04:37 AM
RE: Prime app variables - Bob Frazee - 12-16-2013, 12:40 AM



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