Getting Started - Adobe 12001196 - Acrobat - Mac Manual

Javascript
Hide thumbs Also See for 12001196 - Acrobat - Mac:
Table of Contents

Advertisement

causes a subsequent value entered (to the right of the point) to be divided by 10 to
represent the tenths position.
Testing the Calculator
To familiarize yourself with the basic calculator operation, open Calc.pdf in Acrobat.
Experiment with entering expressions and evaluating their results.
When you are familiar with the calculator's operation, close this file.

Getting Started

This exercise introduces runtime errors into the calculator example. It takes you through
steps in the Debugger to correct the errors so that this version of the calculator works like
the one you just experimented with.
N
O T E
1. Open the file CalcWithRTErrors.pdf in Acrobat.
2. Just as you did with Calc.pdf, experiment with entering some expressions. Observe
the results of:
Button values that you enter and the resulting value displayed.
Function keys that you enter and the resulting string values displayed.
3. Click Cancel. This clears Display to 0s.
4. Test values, and compare your results to Results:.
Test:
Enter this expression. Evaluate:
9 - 6 = ???
Click Cancel. Evaluate:
9 * 3 = ???
Add 3 to the result. Evaluate:
((9 * 3) +3 )=
Add 3 again. Evaluate:
(((9 * 3) +3) + 3 =
Click Cancel. Add 3 to 9. Evaluate:
9 + 3 = ???
Results:
9 - 6 = -6
9 * 3 = 0
((9 * 3) +3 )= 0
(((9 * 3) +3) = 0) + 3 = 3
9 + 3 = 3
Acrobat JavaScript Scripting Guide
Before you start this exercise, be sure that the Acrobat JavaScript debugger is
:
enabled. See
Enabling the Acrobat JavaScript Debugger
Acrobat JavaScript Debugger
Exercise: Calculator
on
page 34
for details.
3
49

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Acrobat 6.0

Table of Contents