home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 3 / PDCD_3.iso / utilities / utilsa / andrews / Hourglass / ReadMe < prev   
Encoding:
Text File  |  1991-03-11  |  1.1 KB  |  37 lines

  1. These files will teach you how to use the standard hourglass.
  2.  
  3.  
  4.  
  5. SYS "Hourglass_On"              -          Turns the hourglass on
  6. SYS "Hourglass_Off"             -          Turns the hourglass off
  7.  
  8.         Note concerning Hourglass_Off: For every time you do Hourglass_On,
  9. you must do Hourglass_Off e.g. if you turned on the Hourglass four times, you
  10. must turn it off four times
  11.  
  12. SYS "Hourglass_LEDs",leds%      -          Lights the hourglass LEDs (the
  13. bars on the top and bottom)
  14.  
  15.    led% = 0     -     both LEDs off
  16.    led% = 1     -     top LED on
  17.    led% = 2     -     bottom LED on
  18.    led% = 3     -     both LEDs on
  19.    
  20. SYS "Hourglass_Percentage",p%   -          Displays a percentage with the
  21. Hourglass
  22.  
  23.    p% is a positive integer between 0 and 99
  24.    
  25.    To calculate a percentage:
  26.    
  27.    e.g. A car is travelling to a city which is 400 miles away.  It has
  28. travelled 65 miles so far.
  29.  
  30.       total_distance   =  400
  31.       distance_so_far  =  65
  32.       
  33.       percentage=(100/total_distance)*distance_so_far
  34.       
  35.    
  36. SYS "Hourglass_Smash"          -           Removes the Hourglass definitely, no matter how many times it has been turned on.
  37.