Previous Next Home / Soft- & Freeware / RPNcalculator / Variables

Userdefined variables:

Save and resume

Userdefined variables are automatically saved in cookies for 50 days and will be resumed on starting a new instance of RPNcalculator. To use automatic saving and resuming your browser must allow cookies. In your local homezone, after downloading RPNcalculator, this is usually allowed by the safety settings of your browser. Defining, using and deleting userdefined variables is possible, even if cookies are forbidden.

Defining

Userdefined variables are generated by writing '=VarName' (without inverted commas) into the input field and pressing 'Enter'. The variable will be stored with the value given in the first stack. A variablename 'VarName' must begin with a character [a-z,A-Z] and may have arbitrary length. Arithmetic commands '^!%/*-+' and keyboard commands are not allowed. Already existing variables with the same name will be overwritten without request.

To store the value 5 in the variable 'five' perform: Type 5, 'Enter', type the word 'five' (without inverted commas) and press 'Enter' again.

Using

Call an userdefined variable by its name. To multiplicate the value 6 with the above defined variable 'five' perform: Type 6, 'Enter', type the word 'five' (without inverted commas), 'Enter'. The variable value 5 of 'five' will be pushed into the first stack. Now perform the multiplication as common by the input of '*'.

Deleting

Userdefined variables are deleted using the command '#VarName' (without inverted commas) and pressing 'Enter'. To delete the above defined variable 'five' perform: Type '#five' (without inverted commas) + 'Enter'. All defined variables can be deleted by '##' + 'Enter'.

Listing

You may list all userdefined variables in a popup window by pressing the 'Var'-button of the program or by typing the keyboard command 'var' (without inverted commas) + 'Enter'. Therefore your browser must allow popup windows. This usually applies in your homezone when using the RPNcalculator locally.

The popup window lists all current variables and will not be updated when variables are defined or deleted. This allows you to hold listings of older variables on screen and to open several listings at the same time. You may transfer a variable or a value from the listing to the RPNcalculator by selecting and performing copy (Ctrl-C) and paste (Ctrl-V) to the input field.