Software for "Variable" and directories for HP Prime?
05-09-2018, 11:40 AM
Post: #4
 tcab Member Posts: 183 Joined: Dec 2017
RE: Software for "Variable" and directories for HP Prime?
You may know all this - just putting it out there in case it helps:

Create a new application for each project you feel needs a "directory", either based on an existing application or based on none. Just select an application and hit "save". This, as Cyrille says, will give you a "directory", with variables that are only active when that application is active. You can tell which application is active by looking at the titlebar of the HP Prime.

This is a subtle but crucial piece of knowledge, that to me, made the whole App idea on the Prime make sense. There is always an active application whose special application variables appear in scope. Conversely those variables disappear from scope when that application is no longer the active application. For example F1 will refer to your F1(X) function if the "Function App" is active but refers to spreadsheet location F1 when the "Spreadsheet App" is active. General global variables you create are global and accessible no matter which app is active.

So, looking just at application variables:

Code:
AVars    - lists application vars of the current active application AVars("myvar4"):=987    - create an application var

You can also auto create application variables by editing the current application "program" e.g.

Code:
EXPORT myvar1, myvar2:=123, myvar3;  // custom application vars
and these application variables are created when you activate that app. You can also run code in the START() function of the application "program", and assign calculations, or whatever, to those application variables. You can also access any apps variables by full namespace references e.g. Spreadsheet.F1 or Function.F1 no matter which application is currently active.

More refs:
- see https://en.hpprime.club/articles/hans-hp...-variables for a nice article re scope.
- see how to create custom vars https://h30434.www3.hp.com/t5/Calculator...-p/6279061
 « Next Oldest | Next Newest »

 Messages In This Thread Software for "Variable" and directories for HP Prime? - dmmaster - 05-08-2018, 08:27 PM RE: Software for "Variable" and directories for HP Prime? - cyrille de brébisson - 05-09-2018, 04:49 AM RE: Software for "Variable" and directories for HP Prime? - Stevetuc - 05-09-2018, 05:45 AM RE: Software for "Variable" and directories for HP Prime? - dmmaster - 05-09-2018, 06:21 PM RE: Software for "Variable" and directories for HP Prime? - tcab - 05-09-2018 11:40 AM RE: Software for "Variable" and directories for HP Prime? - compsystems - 05-10-2018, 06:17 PM RE: Software for "Variable" and directories for HP Prime? - cyrille de brébisson - 05-14-2018, 05:18 AM RE: Software for "Variable" and directories for HP Prime? - dmmaster - 05-14-2018, 06:21 PM RE: Software for "Variable" and directories for HP Prime? - pier4r - 05-14-2018, 05:44 AM RE: Software for "Variable" and directories for HP Prime? - mfleming - 05-15-2018, 03:37 AM RE: Software for "Variable" and directories for HP Prime? - Stevetuc - 05-15-2018, 06:12 AM RE: Software for "Variable" and directories for HP Prime? - dmmaster - 05-15-2018, 10:35 AM RE: Software for "Variable" and directories for HP Prime? - pier4r - 05-15-2018, 10:40 AM RE: Software for "Variable" and directories for HP Prime? - Stevetuc - 05-15-2018, 11:04 AM RE: Software for "Variable" and directories for HP Prime? - pier4r - 05-15-2018, 07:02 PM RE: Software for "Variable" and directories for HP Prime? - Stevetuc - 05-15-2018, 08:53 PM RE: Software for "Variable" and directories for HP Prime? - compsystems - 05-15-2018, 06:26 PM RE: Software for "Variable" and directories for HP Prime? - cyrille de brébisson - 05-16-2018, 05:04 AM RE: Software for "Variable" and directories for HP Prime? - Stevetuc - 05-16-2018, 09:43 AM RE: Software for "Variable" and directories for HP Prime? - Arno K - 05-16-2018, 07:35 AM RE: Software for "Variable" and directories for HP Prime? - Giancarlo - 05-16-2018, 07:07 PM

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