Keyboard Control in Calculator When Pasting Formulas (91680)



The information in this article applies to:

  • Microsoft Windows 3.0
  • Microsoft Windows 3.0a
  • Microsoft Windows 3.1
  • Microsoft Windows 3.11
  • Microsoft Windows for Workgroups 3.1
  • Microsoft Windows for Workgroups 3.11

This article was previously published under Q91680

SUMMARY

Calculator can paste numbers and formulas from the Clipboard; however, the syntax of a formula is not necessarily the same syntax you would normally use. For example, pasting "5*3=" generates the correct result "15," but pasting "SIN(30)" does not generate the correct result "5."

MORE INFORMATION

This behavior occurs because of the way Calculator accepts data pasted from the Clipboard. Calculator uses single keystrokes to activate its functions or buttons and uses data from the Clipboard one character at a time, moving left to right.

When Calculator uses a character from the pasted data, the data is used as if you typed that character while in Calculator. In the "SIN(30)" example, using pasted data would be the same as clicking SINE, INVERSE, NATURAL LOG, and then finally typing "30." The correct formula in this case would be "30s" (type 30 and then activate the SINE function.)

Below is a table listing all the buttons in Calculator with the keystrokes that activate them.
   Function                Key(s)
   ------------------------------

   "."                     .
   "0"                     0
   "1"                     1
   "2"                     2
   "3"                     3
   "4"                     4
   "5"                     5
   "6"                     6
   "7"                     7
   "8"                     8
   "9"                     9
   "("                     (
   ")"                     )
   "*"                     *
   "+"                     +
   "+/-"                   F9
   "-"                     -
   "/"                     / 
   "="                     =
   "1/x"                   r
   "A"                     a
   "And"                   &
   "Ave"                   CTRL A
   "B"                     b
   "Back"                  BACKSPACE
   "Bin"                   F8
   "C"                     c
   "C (Clear)"             ESC
   "CE"                    DEL
   "cos"                   o
   "D"                     d
   "Dat"                   INS
   "Dec"                   F6
   "Deg"                   F2
   "dms"                   m
   "E"                     e
   "Exp"                   x
   "F"                     f
   "F-E"                   v
   "Grad"                  F4
   "Hex"                   F5
   "Hyp"                   h
   "Int"                   ;
   "Inv"                   i
   "ln"                    n
   "log"                   l
   "Lsh"                   >
   "M+"                    CTRL P
   "MC"                    CTRL L
   "Mod"                   %
   "MR"                    CTRL R
   "MS"                    CTRL M
   "n!"                    !
   "Not"                   ~
   "Oct"                   F7
   "Or"                    \ 
   "PI"                    p
   "Rad"                   F3
   "s"                     CTRL D
   "sin"                   s
   "Sta"                   CTRL S
   "Sum"                   CTRL T
   "tan"                   t
   "x^2"                   @
   "x^3"                   #
   "x^y"                   y
   "Xor"                   ^
				

Modification Type:MinorLast Reviewed:7/7/2005
Keywords:KB91680