Post Reply 
Programming with variables
06-02-2017, 04:54 PM
Post: #7
RE: Programming with variables
Note - the problem with the explained method is that if you *ever* remove those variables, the equation will no longer work properly.


Instead, the best solution is to define your variables in the application program that is linked to your app. This will be the top line in the program catalog when you app is active.

At the top, define your variables:

Ks,Js,v; //declare variables that only appear when this solve app is active

If you want the variables to be global through the system:

EXPORT Ks,Js,v; //declare variables that are global


This way, you are much more certain your variables will remain. keeping them local makes it much less likely they will conflict in other places.

TW

Although I work for HP, the views and opinions I post here are my own.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Programming with variables - Fluggeil - 06-01-2017, 05:49 AM
RE: Programming with variables - KeithB - 06-01-2017, 03:50 PM
RE: Programming with variables - Fluggeil - 06-01-2017, 06:29 PM
RE: Programming with variables - Fluggeil - 06-02-2017, 06:09 AM
RE: Programming with variables - Tim Wessman - 06-02-2017 04:54 PM



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