Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Telepathy Communications Library - <b>tp_iswatch()</b> - test whether watch matched http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   tp_iswatch() - test whether watch matched

   lMatched := tp_iswatch(nWatch)

   nWatch      Watch handle.

   Returns     TRUE if watch matched, FALSE if not.

   Checks whether the input watch specified by nWatch has matched.  If
   it has, its match count is decremented and tp_iswatch() returns TRUE.
   The match count is the number of times the watch has matched, and
   tp_iswatch() will return TRUE once for each match.

   nWatch is the handle returned by the tp_watch() call that set the
   watch.

   Example:

       nENQ := tp_watch(1, chr(5))
           // Watch for chr(5), the ASCII ENQ (enquire) character.

       if tp_iswatch(nENQ)
           tp_send(1, chr(6))      // Respond with ACK (acknowledge).
       endif

See Also: tp_getwatch() tp_watch() Input Watches

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson