Difference between revisions of "CALCULATOR"

From Recital Documentation Wiki
Jump to: navigation, search
(Products)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==Class==
 
Screen Dialogs
 
 
 
 
==Purpose==
 
==Purpose==
 
Display a popup calculator
 
Display a popup calculator
Line 12: Line 8:
  
 
==See Also==
 
==See Also==
[[CALENDAR]], [[Function Keys]], [[MENUITEM()]], [[VAL()]]
+
[[CALENDAR]], [[DB_NOCALCULATOR]], [[Function Keys]], [[MENUITEM()]], [[SET SHADOW]], [[VAL()]]
  
  
Line 40: Line 36:
  
 
==Products==
 
==Products==
Recital Terminal Developer
+
Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]

Latest revision as of 14:39, 10 November 2009

Purpose

Display a popup calculator


Syntax

CALCULATOR [AT <expN1>,<expN2>] [BOLD]


See Also

CALENDAR, DB_NOCALCULATOR, Function Keys, MENUITEM(), SET SHADOW, VAL()


Description

The CALCULATOR command displays a calculator that can be used to perform addition, subtraction, multiplication, division and percentage operations entered using the keyboard.

The calculator is operated by pressing the appropriate mathematical operators and digits on the keyboard. Percentage calculations are performed by loading the value to be calculated before entering the percentage. If the value is already displayed in the calculator, press the '=' operator, then press, for example: '50 % =' to calculate fifty percent of that value. If the value is not already displayed in the calculator, type for example '2000 =' to indicate that you are going to calculate a percentage of two thousand, then enter the percentage amount followed by the '=' operator. if the [EXIT/SAVE] key is pressed the MENUITEM() function will return the result from the CALCULATOR as a character string. The VAL() function can be used to convert a character string to a numeric. If the [ABANDON] key is pressed, MENUITEM() will return a null string.

When editing a numeric field, pressing the [HELP] key displays the CALCULATOR. If you save the result of the currently displayed calculation, using the [EXIT/SAVE] key, then the value is returned to the field.


Keyword Description
AT <expN1>,<expN2> Specify the calculator top left row and column coordinates. If no coordinates are specified, the calculator is centered on the screen.
BOLD Display the calculator in bold, if supported by the terminal display.


Example

calculator at 2,30


Products

Recital