home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga ISO Collection
/
AmigaUtilCD2.iso
/
Misc
/
HELM4.DMS
/
in.adf
/
Convert
(
.txt
)
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
Helm Multimedia Book
|
1993-08-23
|
49.6 KB
|
1,008 lines
Convert
Scott Nickerson
06-18-93
on BookClose begin
put 0 into textfield "Display"
checkit begin
global operator
global doit
if (operator is not empty) and (doit is false) then begin
put zero into textfield "Display"
put true into doit
end
resetcalculator begin
global operator, doit
put "=" into operator
put false into doit
'on PageOpen begin
'set floatformat to "%.8f"
resetcalculator
checkit
Display
/ operator
Display
/ operator
New...
Open...
Make Copy...
Streamline...
Print...
Report...
Preferences...
Workbench
Help...
About...
Quit...
Paste
Clear
Select All
Cut Page
Copy Page
Colors
Load...
Save...
Restore Colors
Default Colors
Brush Colors
Image Colors
Cycle
Grid...
Stop Sound
Show All
Edit Form
Share
Next Page
Previous Page
First Page
Last Page
Backward
Forward
Last Book
Browse...
Autobrowse...
Bookshelf
New Page
Delete Page
New Form
Load Form...
Save Form...
Image
Load...
Save...
Capture...
Clipboard
Paste
Spare
Swap Frames
Copy to Spare
Merge in Front
Merge in Back
Delete Spare
Frame
Previous
Delete
Copy to All
Color
Remap
Transparency
Paper <-> Pen
Paper -> Pen
Count
Vertical
Horizontal
Info...
Brush
Load...
Save...
Restore
Clipboard
Paste
Color
Remap
Transparency
Paper <-> Pen
Paper -> Pen
Center
Corner
Any Point
Any Size
Halve
Double
Halve Width
Halve Height
Double Width
Double Height
To PAL
To NTSC
Vertical
Horizontal
Shear
Vertical
Horizontal
Rotate
Any Angle
Paint
Matte
Color
Replace
Smear
Dissolve
Spare
Cycle
Cycle 2
Gradient
Gradient 2
Smudge
Chaos
Count
Custom
Dither
Edges
Object
Load...
Save...
Bring to Front
Send to Back
Bring Closer
Send Farther
Group
Ungroup
Duplicate...
Align...
Info...
Actions...
Script...
Load...
Save...
Plain
Underline
Italic
Shadow
Font...
Spacing...
Hypertext
Actions...
Script...
Tools
Coordinates
Title Bar
Palette
Colors
Patterns
Paint Tools
Paint Types
Histogram
Magnifier
Messages
Draw Tools
Layers
Pages
Author
Book...
Form...
Page...
Display...
Menus...
Narrator...
Hypertext...
Resources...
Effect...
Effect Area
Small8
topaz.font
PTopaz.fontGLOB
Helm_6:Convert
Helm_4:Atlas
Helm_4:Notes
Helm_4:Calendar
Helm_4:PhoneBook
Con SelectUp
begin
answer "Convert V1.2\nEagle Tree Software"
Convert V1.2
Eagle Tree Software
wwwwPAGE
Display
C ->
Yards -> Meters
Meters -> Yards
F ->
Inches -> Centimeters
Centimeters -> Meters
Miles -> Kilometers
Pound -> Gram
Gram -> Pound
Kilometers -> Miles
on SelectUp
begin
checkit()
if textfield "Display" = 0 and (char 2 of textfield "Display") != "."
put "7" into textfield "Display"
else put "7" after textfield "Display"
checkit
Display
Display
Display
Display
on SelectUp
begin
checkit()
if textfield "Display" = 0 and (char 2 of textfield "Display") != "."
put "8" into textfield "Display"
else put "8" after textfield "Display"
checkit
Display
Display
Display
Display
on SelectUp
begin
checkit()
if textfield "Display" = 0 and (char 2 of textfield "Display") != "."
put "9" into textfield "Display"
else put "9" after textfield "Display"
checkit
Display
Display
Display
Display
on SelectUp
begin
global operator
global firstnumber
global doit
put false into doit
put "/" into operator
put textfield "Display" into firstnumber
/ operator
firstnumber
Display
on SelectUp
begin
checkit()
if textfield "Display" = 0 and (char 2 of textfield "Display") != "."
put "4" into textfield "Display"
else put "4" after textfield "Display"
checkit
Display
Display
Display
Display
on SelectUp
begin
checkit()
if textfield "Display" = 0 and (char 2 of textfield "Display") != "."
put "5" into textfield "Display"
else put "5" after textfield "Display"
checkit
Display
Display
Display
Display
on SelectUp
begin
checkit()
if textfield "Display" = 0 and (char 2 of textfield "Display") != "."
put "6" into textfield "Display"
else put "6" after textfield "Display"
checkit
Display
Display
Display
Display
on SelectUp
begin
global operator
global firstnumber
global doit
put false into doit
put "x" into operator
put textfield "Display" into firstnumber
/ operator
firstnumber
Display
on SelectUp
begin
checkit()
if textfield "Display" = 0 and (char 2 of textfield "Display") != "."
put "1" into textfield "Display"
else put "1" after textfield "Display"
checkit
Display
Display
Display
Display
on SelectUp
begin
checkit()
if textfield "Display" = 0 and (char 2 of textfield "Display") != "."
put "2" into textfield "Display"
else put "2" after textfield "Display"
checkit
Display
Display
Display
Display
on SelectUp
begin
checkit()
if textfield "Display" = 0 and (char 2 of textfield "Display") != "."
put "3" into textfield "Display"
else put "3" after textfield "Display"
checkit
Display
Display
Display
Display
on SelectUp
begin
global operator
global firstnumber
global doit
put false into doit
put "-" into operator
put textfield "Display" into firstnumber
/ operator
firstnumber
Display
on SelectUp
begin
checkit()
if textfield "Display" = 0 and (char 2 of textfield "Display") != "."
put "0" into textfield "Display"
'else put "0" after textfield "Display"
if textfield "Display" != 0 put "0" after textfield "Display"
checkit
Display
Display
Display
Display
Display
bon SelectUp
begin
put textfield "Display" * -1 into textfield "Display"
resetcalculator()
Display
Display
resetcalculator
2on SelectUp
begin
checkit()
get textfield "Display"
put the number of characters of it into n
put false into dot
for i = 1 to n begin
if (char i of it) = "." begin
put true into dot
put n + 1 into i
end
if dot = false then
put "." after textfield "Display"
checkit
Display
Display
on SelectUp
begin
global operator
global firstnumber
global doit
put false into doit
put "+" into operator
put textfield "Display" into firstnumber
/ operator
firstnumber
Display
:on SelectUp
begin
put zero into textfield "Display"
Display
Don SelectUp
begin
global operator
global firstnumber
global doit
if operator = "/" begin
if (textfield "Display" = 0) then
put "DIVISION BY ZERO" into it
else put (firstnumber / textfield "Display") into it
end
if operator = "x" then put firstnumber * textfield "Display" into it
if operator = "-" then put firstnumber - textfield "Display" into it
if operator = "+" then put firstnumber + textfield "Display" into it
if operator is empty then put zero into it
put it into textfield "Display"
put "=" into operator
put false into doit
/ operator
firstnumber
Display
DIVISION BY ZERO
Display
Display
Display
Display
Display
on SelectUp
begin
get textfield "Display"
put (sin of (it * 3.14159265358979 / 180)) into textfield "Display"
resetcalculator()
Display
Display
resetcalculator
on SelectUp
begin
get textfield "Display"
put (cos of (it * 3.14159265358979 / 180)) into textfield "Display"
resetcalculator()
Display
Display
resetcalculator
on SelectUp
begin
get textfield "Display"
put (tan of (it * 3.14159265358979 / 180)) into textfield "Display"
resetcalculator()
Display
Display
resetcalculator
on SelectUp
begin
get textfield "Display"
put (asin of it) * 180 / 3.14159265358979 into textfield "Display"
resetcalculator()
Display
Display
resetcalculator
on SelectUp
begin
get textfield "Display"
put (acos of it) * 180 / 3.14159265358979 into textfield "Display"
resetcalculator()
Display
Display
resetcalculator
on SelectUp
begin
get textfield "Display"
get textfield "Display"
put (atan of it) * 180 / 3.14159265358979 into textfield "Display"
resetcalculator()
Display
Display
Display
resetcalculator
on SelectUp
begin
get textfield "Display"
put (sinh of (it * 3.14159265358979 / 180)) into textfield "Display"
resetcalculator()
Display
Display
resetcalculator
on SelectUp
begin
get textfield "Display"
put (cosh of (it * 3.14159265358979 / 180)) into textfield "Display"
resetcalculator()
Display
Display
resetcalculator
on SelectUp
begin
get textfield "Display"
put (tanh of (it * 3.14159265358979 / 180)) into textfield "Display"
resetcalculator()
Display
Display
resetcalculator
jon SelectUp
begin
put the log10 of textfield "Display" into textfield "Display"
resetcalculator()
Display
Display
resetcalculator
hon SelectUp
begin
put the exp of textfield "Display" into textfield "Display"
resetcalculator()
Display
Display
resetcalculator
on SelectUp
begin
get textfield "Display"
put (cot of (it * 3.14159265358979 / 180)) into textfield "Display"
resetcalculator()
Display
Display
resetcalculator
jon SelectUp
begin
put (textfield "Display") * 1.8 + 32 into textfield "Display"
resetcalculator()
Display
Display
resetcalculator
lon SelectUp
begin
put (textfield "Display") * 1.09361398 into textfield "Display"
resetcalculator()
Display
=Display
resetcalculator
hon SelectUp
begin
put (textfield "Display") * 0.9144 into textfield "Display"
resetcalculator()
Display
Display
resetcalculator
qon SelectUp
begin
put ((textfield "Display") - 32) * 0.555555 into textfield "Display"
resetcalculator()
Display
Display
resetcalculator
jon SelectUp
begin
put (textfield "Display") * 0.393701 into textfield "Display"
resetcalculator()
Display
Display
resetcalculator
fon SelectUp
begin
put (textfield "Display") * 2.54 into textfield "Display"
resetcalculator()
Display
RDisplay
resetcalculator
ion SelectUp
begin
put (textfield "Display") * 0.62137 into textfield "Display"
resetcalculator()
Display
Display
resetcalculator
kon SelectUp
begin
put (textfield "Display") * 0.0026792 into textfield "Display"
resetcalculator()
Display
Display
resetcalculator
ion SelectUp
begin
put (textfield "Display") * 373.242 into textfield "Display"
resetcalculator()
Display
Display
resetcalculator
ion SelectUp
begin
put (textfield "Display") * 1.60934 into textfield "Display"
resetcalculator()
Display
PrDisplay
resetcalculator
ILBMBMHD
.CAMG
ppppCRNG
*FORM
ILBMBMHD
1CAMG
ppppCRNG
ILBMBMHD
1CAMG
ppppCRNG
ILBMBMHD
0CAMG
ppppCRNG
fFORM
RILBMBMHD
,CAMG
ppppCRNG
ILBMBMHD
1CAMG
ppppCRNG
,FORM
ILBMBMHD
&CAMG
ppppCRNG
FFORM
2ILBMBMHD
CAMG
ppppCRNG
0pp0x
ptopaz
3o3xg
Display
C ->
Yards -> Meters
Meters -> Yards
F ->
Inches -> Centimeters
Centimeters -> Meters
Miles -> Kilometers
Pound -> Gram
Gram -> Pound
Kilometers -> Miles
on SelectUp
begin
checkit()
if textfield "Display" = 0 and (char 2 of textfield "Display") != "."
put "7" into textfield "Display"
else put "7" after textfield "Display"
checkit
Display
Display
Display
Display
on SelectUp
begin
checkit()
if textfield "Display" = 0 and (char 2 of textfield "Display") != "."
put "8" into textfield "Display"
else put "8" after textfield "Display"
checkit
Display
Display
Display
Display
on SelectUp
begin
checkit()
if textfield "Display" = 0 and (char 2 of textfield "Display") != "."
put "9" into textfield "Display"
else put "9" after textfield "Display"
checkit
Display
Display
Display
Display
on SelectUp
begin
global operator
global firstnumber
global doit
put false into doit
put "/" into operator
put textfield "Display" into firstnumber
/ operator
firstnumber
Display
on SelectUp
begin
checkit()
if textfield "Display" = 0 and (char 2 of textfield "Display") != "."
put "4" into textfield "Display"
else put "4" after textfield "Display"
checkit
Display
Display
Display
Display
on SelectUp
begin
checkit()
if textfield "Display" = 0 and (char 2 of textfield "Display") != "."
put "5" into textfield "Display"
else put "5" after textfield "Display"
checkit
Display
Display
Display
Display
on SelectUp
begin
checkit()
if textfield "Display" = 0 and (char 2 of textfield "Display") != "."
put "6" into textfield "Display"
else put "6" after textfield "Display"
checkit
Display
Display
Display
Display
on SelectUp
begin
global operator
global firstnumber
global doit
put false into doit
put "x" into operator
put textfield "Display" into firstnumber
/ operator
firstnumber
Display
on SelectUp
begin
checkit()
if textfield "Display" = 0 and (char 2 of textfield "Display") != "."
put "1" into textfield "Display"
else put "1" after textfield "Display"
checkit
Display
Display
Display
Display
on SelectUp
begin
checkit()
if textfield "Display" = 0 and (char 2 of textfield "Display") != "."
put "2" into textfield "Display"
else put "2" after textfield "Display"
checkit
Display
Display
Display
Display
on SelectUp
begin
checkit()
if textfield "Display" = 0 and (char 2 of textfield "Display") != "."
put "3" into textfield "Display"
else put "3" after textfield "Display"
checkit
Display
Display
Display
Display
on SelectUp
begin
global operator
global firstnumber
global doit
put false into doit
put "-" into operator
put textfield "Display" into firstnumber
/ operator
firstnumber
Display
on SelectUp
begin
checkit()
if textfield "Display" = 0 and (char 2 of textfield "Display") != "."
put "0" into textfield "Display"
'else put "0" after textfield "Display"
if textfield "Display" != 0 put "0" after textfield "Display"
checkit
Display
Display
Display
Display
Display
bon SelectUp
begin
put textfield "Display" * -1 into textfield "Display"
resetcalculator()
Display
Display
resetcalculator
2on SelectUp
begin
checkit()
get textfield "Display"
put the number of characters of it into n
put false into dot
for i = 1 to n begin
if (char i of it) = "." begin
put true into dot
put n + 1 into i
end
if dot = false then
put "." after textfield "Display"
checkit
Display
Display
on SelectUp
begin
global operator
global firstnumber
global doit
put false into doit
put "+" into operator
put textfield "Display" into firstnumber
/ operator
firstnumber
Display
:on SelectUp
begin
put zero into textfield "Display"
Display
Don SelectUp
begin
global operator
global firstnumber
global doit
if operator = "/" begin
if (textfield "Display" = 0) then
put "DIVISION BY ZERO" into it
else put (firstnumber / textfield "Display") into it
end
if operator = "x" then put firstnumber * textfield "Display" into it
if operator = "-" then put firstnumber - textfield "Display" into it
if operator = "+" then put firstnumber + textfield "Display" into it
if operator is empty then put zero into it
put it into textfield "Display"
put "=" into operator
put false into doit
/ operator
firstnumber
Display
DIVISION BY ZERO
Display
Display
Display
Display
Display
on SelectUp
begin
get textfield "Display"
put (sin of (it * 3.14159265358979 / 180)) into textfield "Display"
resetcalculator()
Display
Display
resetcalculator
on SelectUp
begin
get textfield "Display"
put (cos of (it * 3.14159265358979 / 180)) into textfield "Display"
resetcalculator()
Display
Display
resetcalculator
on SelectUp
begin
get textfield "Display"
put (tan of (it * 3.14159265358979 / 180)) into textfield "Display"
resetcalculator()
Display
Display
resetcalculator
on SelectUp
begin
get textfield "Display"
put (asin of it) * 180 / 3.14159265358979 into textfield "Display"
resetcalculator()
Display
Display
resetcalculator
on SelectUp
begin
get textfield "Display"
put (acos of it) * 180 / 3.14159265358979 into textfield "Display"
resetcalculator()
Display
Display
resetcalculator
on SelectUp
begin
get textfield "Display"
get textfield "Display"
put (atan of it) * 180 / 3.14159265358979 into textfield "Display"
resetcalculator()
Display
Display
Display
resetcalculator
on SelectUp
begin
get textfield "Display"
put (sinh of (it * 3.14159265358979 / 180)) into textfield "Display"
resetcalculator()
Display
Display
resetcalculator
on SelectUp
begin
get textfield "Display"
put (cosh of (it * 3.14159265358979 / 180)) into textfield "Display"
resetcalculator()
Display
Display
resetcalculator
on SelectUp
begin
get textfield "Display"
put (tanh of (it * 3.14159265358979 / 180)) into textfield "Display"
resetcalculator()
Display
Display
resetcalculator
jon SelectUp
begin
put the log10 of textfield "Display" into textfield "Display"
resetcalculator()
Display
Display
resetcalculator
hon SelectUp
begin
put the exp of textfield "Display" into textfield "Display"
resetcalculator()
Display
Display
resetcalculator
on SelectUp
begin
get textfield "Display"
put (cot of (it * 3.14159265358979 / 180)) into textfield "Display"
resetcalculator()
Display
Display
resetcalculator
jon SelectUp
begin
put (textfield "Display") * 1.8 + 32 into textfield "Display"
resetcalculator()
Display
Display
resetcalculator
lon SelectUp
begin
put (textfield "Display") * 1.09361398 into textfield "Display"
resetcalculator()
Display
=Display
resetcalculator
hon SelectUp
begin
put (textfield "Display") * 0.9144 into textfield "Display"
resetcalculator()
Display
Display
resetcalculator
qon SelectUp
begin
put ((textfield "Display") - 32) * 0.555555 into textfield "Display"
resetcalculator()
Display
Display
resetcalculator
jon SelectUp
begin
put (textfield "Display") * 0.393701 into textfield "Display"
resetcalculator()
Display
Display
resetcalculator
fon SelectUp
begin
put (textfield "Display") * 2.54 into textfield "Display"
resetcalculator()
Display
RDisplay
resetcalculator
ion SelectUp
begin
put (textfield "Display") * 0.62137 into textfield "Display"
resetcalculator()
Display
Display
resetcalculator
kon SelectUp
begin
put (textfield "Display") * 0.0026792 into textfield "Display"
resetcalculator()
Display
Display
resetcalculator
ion SelectUp
begin
put (textfield "Display") * 373.242 into textfield "Display"
resetcalculator()
Display
Display
resetcalculator
ion SelectUp
begin
put (textfield "Display") * 1.60934 into textfield "Display"
resetcalculator()
Display
PrDisplay
resetcalculator