home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / xbase / library / clipper / comsoft / comsoft1.doc next >
Encoding:
Text File  |  1988-11-06  |  5.1 KB  |  200 lines

  1.                                 ComSoft #1
  2.                               Clipper Library
  3.                                Documentation
  4.  
  5.                      COMSOFT1.LIB is Copyright 1988 by
  6.                             Bruce E. Farrington
  7.                             All Rights Reserved
  8.  
  9.     The COMSOFT1.LIB library is an enhancement library for
  10. inclusion and use with the Nantucket Corporation CLIPPER(r) Summer
  11. 87 compiler. 
  12.     The functions within the library may be used in commercial
  13. software without license or royalty as long as the library is NOT
  14. the major component of the software and that the library itself is
  15. not distributed with the commercial software. For commercial
  16. software, the library may only be distributed as part of a standard
  17. executable file (.EXE).
  18.  
  19.  
  20.                                 Disclaimer
  21.  
  22.     The COMSOFT1.LIB library is distributed "as is". The
  23. COMSOFT1.LIB library may contain errors, which could cause
  24. unexpected results and loss of data or productivity. In no case are
  25. any warranties, express or implied made by the author. In no event
  26. will the author be liable for any consequential, direct, or
  27. indirect damages for the failure of the library or the functions
  28. contained therein to perform any function. It is the sole
  29. responsibility of the user to ascertain the suitability and
  30. functionality of the software to perform any task.
  31.  
  32.  
  33.     The COMSOFT1.LIB library may NOT be posted on any Bulletin
  34. Board or Time Sharing Network other than the NANTUCKET SIG of
  35. Compuserve. 
  36.  
  37.  
  38.  
  39. CLIPPER is a registered Trademark of Nantucket Corporation
  40. CLIPTRAP    Sets a time out timer and character(s) to stuff into the
  41.            keyboard buffer if the timer expires. Must be used in
  42.            conjunction with CLIPOFF function. This function is used
  43.            to set a time out on a READ command and can be used to
  44.            push a READ terminate key into the keyboard buffer.
  45.  
  46.         Syntax <expL> = CLIPTRAP(<expN>,<expC>)
  47.             
  48.             <expL> Should always return true. If <expL> returns
  49.                  false the function did not execute properly.
  50.  
  51.             <expN> Is the number of seconds to wait before time
  52.                  out.
  53.  
  54.             <expC> Is the character(s) to stuff into the
  55.                  keyboard buffer if a time out occurs. Extended
  56.                  characters are preceded by CHR(0) and followed by
  57.                  the proper keyboard scan code. Normal characters
  58.                  are entered as themselves. Maximum characters in
  59.                  <expC> cannot be greater than 15.
  60.  
  61.         Example
  62.             CLEAR
  63.             inx1 = SPACE(4)
  64.             @ 5, 0 SAY "What is the input"
  65.             @ 6, 0 GET inx1
  66.             xx = CLIPTRAP(30,CHR(0)+CHR(81))
  67.             READ
  68.             zz = CLIPOFF()
  69.             IF zz
  70.                 @ 7, 0 SAY "The timer expired"
  71.             ENDIF
  72.             aa = INKEY()
  73.             RETURN
  74.  
  75.             This example will wait 30 seconds for input from the
  76.                  READ command. If the 30 seconds expires a Page Down
  77.                  will be forced into the keyboard buffer. The Page
  78.                  Down will terminate the READ. A logical TRUE
  79.                  returned from CLIPOFF() indicates that the timer has
  80.                  expired.
  81.  
  82.         Special Considerations
  83.             The CLIPTRAP() and CLIPOFF() functions MUST be used
  84.                  in pairs as they set and reset internal interrupt
  85.                  vectors.
  86.  
  87. CLIPOFF    Determines if CLIPTRAP() function caused a time out and
  88.            placed the characters from the CLIPTRAP function into the
  89.            keyboard.
  90.  
  91.         Syntax <expL> = CLIPOFF()
  92.  
  93.             <expL> Returns TRUE if CLIPTRAP timed out, otherwise
  94.                  returns FALSE.
  95.  
  96.         Example
  97.  
  98.             See CLIPTRAP() example.
  99.                 
  100.  
  101. CAPS        Toggles Caps Lock to off if it is on, and on if it is
  102.            off.
  103.  
  104.         Syntax CAPS()
  105.  
  106.         Example
  107.  
  108.             CAPS()
  109.  
  110.  
  111. CAPSOFF    Turns off Caps Lock
  112.  
  113.         Syntax CAPSOFF()
  114.  
  115.         Example
  116.  
  117.             CAPSOFF()
  118.  
  119.  
  120. CAPSON    Turns on Caps Lock
  121.  
  122.         Syntax CAPSON()
  123.  
  124.         Example
  125.  
  126.             CAPSON()
  127.  
  128.  
  129. NUM        Toggles Num Lock to off if it is on, and on if it is off.
  130.  
  131.         Syntax NUM()
  132.  
  133.         Example
  134.  
  135.             NUM()
  136.  
  137. NUMOFF    Turns off Num Lock
  138.  
  139.         Syntax NUMOFF()
  140.  
  141.         Example
  142.  
  143.             NUMOFF()
  144.  
  145.  
  146. NUMON    Turns on Num Lock
  147.  
  148.         Syntax NUMON()
  149.  
  150.         Example
  151.  
  152.             NUMON()
  153.  
  154.  
  155. ABENDW    Forces computer to a warm start condition.
  156.  
  157.         Syntax ABENDW()
  158.  
  159.         Example
  160.  
  161.             ABENDW()
  162.  
  163.  
  164. ABENDC    Forces computer to a cold start condition
  165.  
  166.         Syntax ABENDC()
  167.  
  168.         Example
  169.  
  170.             ABENDC()
  171. KBSTAT    Determines if Scroll Lock, Num Lock, Caps Lock, or Insert
  172.            keys are active.
  173.  
  174.         Syntax <expL> = KBSTAT(<expN>)
  175.  
  176.             <expL> Returns a logical TRUE if the key is active,
  177.                  otherwise returns a logical FALSE.
  178.  
  179.             <expN> Is a numeric value in the range of 1, 2, 3,
  180.                  or 4.
  181.                     1 - Test Scroll Lock
  182.                     2 - Test Num Lock
  183.                     3 - Test Caps Lock
  184.                     4 - Test Insert Key
  185.  
  186.         Example
  187.  
  188.             CLEAR
  189.             xx = KBSTAT(2)
  190.             IF xx
  191.                 @ 1, 0 SAY "The Num Lock was on"
  192.                ELSE
  193.                 @ 1, 0 SAY "The Num Lock was Not on"
  194.             ENDIF
  195.             RETURN
  196.  
  197.             This example will test for the Num Lock key and
  198.                  display a message on the screen indicating the key
  199.                  status.
  200.