Tutorial > The calculator menu > Calculation - function and variable selectors >


Variable Selector

The Variable selector task enables you to browse the available variables and their values. It also enables you to insert a variable name into your calculation.

The Variable selector task can be started from the Main menu. Press the 'Menu' [Alt] key. Select the Calculation > Variable selector menu item and the Variable selector task starts.

You are placed in the Variable list control, the only control in this list.

You can navigate this list control in the usual way by pressing the Up [up arrow] and Down [down arrow] keys. The list always contains at least two built-in variables; the memory variable 'm' which contains the number stored in memory, and the result variable 'r' which contains the most recent result number. In addition, any variables assigned in a calculation are included as explained further below.

Press the 'Info' [F2] key to get information about the variable type.

To insert the variable name at the position of the cursor in the calculation, select 'Insert variable to calculation' from the Main menu.

Before demonstrating the use of the 'Variable selector' task, numbers need to be assigned to variables. In the examples below, it is always assumed that you clear a calculation before performing a new one.

Direct variable assignment:
x = 3
Result: x = 3

Variable assignment from the Enter task:
5 + y
The Enter task starts. You are asked to type a value for y; type 7 and press Enter
Result: 12

To use the above x and y variables you can type them directly as part of a calculation for example: z=x+y
Result: z=10

If you know a variable name and want to know its value, just clear the calculation and type its name for example: z
Result: 10

Sometimes you might want to examine the variables available and their values for use in your calculation. This is shown in the following example:

Type a new calculation:
6 +
(the calculation is not complete)

Start the Variable selector task as explained earlier in this page and browse down the Variable list control.

The first item in the list is the memory variable which is by default 0 because you did not change its value. The second variable in the list is the result variable which is 10, the most recent result calculated above. Further down the list are the x variable with the value of 3, the y variable with the value of 7 and the z variable with the the value of 10. All these variables were assigned in the calculations above.

You can insert a variable in the partial calculation you typed above. Focus on the z variable and then select 'Insert variable to calculation' from the Main menu. The 'Variable selector' task ends and you are back in the Calculator task's Pad EditCombo control. The calculation you entered above now has the variable name as follows:
6 +z
Result: 16


[ Previous - Function Selector ]

[ Up - Calculation - function and variable selectors - Section ]

[ Up 2 - The calculator menu - Section ]

[ Up 3 - Tutorial - Section ]

[ Up 4 - SpeakOn CalcPad Manual and Tutorial - Main Index ]