

file-Pro plus
Resource Page
Postfix Calculator Process


----------------------------------
History
Once in a warehouse, I was seeing a task that requires attention. Many 
calculators were been used on many of the workstations for various purposes. 
Three cash registers were using the same calculator for calculating pickup 
report amounts. On the warehouse area employees were using calculators for 
inventory transaction purposes. To many calculators around! 
This equipments were constantly passing from hands to hands depreciating 
fast. Many times calculators were used at the workstation side. If I had a 
better thing than a calculator why I doesn't use it. So I start to write a 
calculator code that could be portable to any of the file-Pro processing 
tables.

----------------------------------
Why you want a calculator if you have windows or X-Windows?
  +Not all terminals handle windows interface 
  +On some VT-100 emulations there is no GUI 
  +You could not bring the results of the windows calculator to file-Pro so
    easy as in a file-Pro innated processing table 
  +You could not modify it as desired 

----------------------------------
The Program

Lines U need to call it: 
  if:
  then:   xo="10";yo="10"
  ----------------------------------
  if:
  then:    call "calc"
  ----------------------------------
XO and YO are the row and col parameters for the first corner of the 
calculator window (X1,Y1).If parameters are off screen they are re-arrange.
 Remember XO and YO must be declared in the automatic processing table of 
the file-Pro file you are going to use calc.prc.
----------------------------------
How to use it?
Once called, you will see the accumulator cleared. The calculator is 
post-fix oriented. That means that every time you want to add, substract, 
multiply and divide you should type the operator first. Example if you want
to add: 30 + 1 you should do it like this: +30 (ENTER) +1 (ENTER). 
The calculator will end if you type e or r where the arithmetical 
operator goes. 
----------------------------------
Additional Feature
When you press r the contents of the calculator are returned in a variable, 
re. Declare that variable on the automatic processing table for returning 
puposes.

(07/01/2000)