Post Reply 
Prime app variables
12-16-2013, 08:02 AM
Post: #14
RE: Prime app variables
Hello,

A Global variable is a variable that stays 'alive' even when all programs have stopped running.

A Local variable is a variable which live starts when the program execution reaches it's declaration and stops when the program execution exits the program block in which it was declared. (ie, when an END, ELSE or UNTIL is hit).

To execute a program/command, there are 2 phases: First, the text is read(parsed) by the calcualtor for the calculator to make sure that it undestands it. During that phase, the input text is transformed into internal calcualor language.
Then the calculator executes the instruction sequence in calculator language.

Global variable starts to exist when the calculator READS (parses) an input text, while local variable are execuion time only.


Now, in programs, you use both local variables (either declared as LOCAL or as input parameters) and global variables.

For global variables, you have 2 choices:
- EXPORTED and non-EXPORTED variables.
Use EXPORT when you want the variable to be accessible from OUTSIDE the program. Do NOT use EXPORT when the variable is only of interest to your program but should not be visible to the user.

cyrille
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
RE: Prime app variables - cyrille de brébisson - 12-16-2013 08:02 AM



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