Post Reply 
Prime app variables
12-13-2013, 03:33 PM
Post: #1
Prime app variables
Could someone point me to information on how app variables work in customized Apps?

Here are some of the questions I have:

1. When you create a customized Solver App called MyApp, and you set the equations in the App code, when does that definitition get set? I tried this and I could edit the equation but I was not sure when the predefined value took effect. I tried doing "Start" for the app and the edited value remains. For instance:
Code:

   Export MyApp()
   BEGIN
      MyApp.Eq='x^2+y^2=1';
   END

2. How do I define and use app-specific variables? For instance, if I define like this:
Code:

   Export v1;
   Export MyApp()
   BEGIN
      MyApp.Eq='x^2+y^2=1';
   END
Here is what I understand:
  1. When MyApp is active, I can access v1 by using 'v1'
  2. When MyApp is not active, I can access it by MyApp.v1
What is confusing me is that when I look at [Mem] and look at user variables, I see entries for all the variables I defined (with EXPORT) in MyApp--but without any MyApp prefix (even when I have another app active)--and it does not offer an option to delete it. Why doesn't it indicate what App it is associated with? When I edit it, it does have the value set my MyApp, so I'm sure it is for that app. When I define the same variable in two different Apps, I see the same name twice in my "User Variables" list under [Mem] -- without any obvious way to distinguish them (other than Edit-ing).

The act of putting togther this post has helped me understand this better, but I would still welcome any suggestions on best practices/advice, examples, and documentatoin.

Thanks

-Jonathan
Visit this user's website 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)