Back Previous Next


Linguist comms package - on

Syntax:

   on {port} {block}

Keyword handler:

   linguist.comms.keyword.CKOn.class

Runtime handler(s):

   linguist.comms.handler.CHOn.class

Function:

This allows you to specify a handler to take control when a newline-terminated message is received from a port. The cause of the callback is available to the code that immediately follows the on instruction, by using the name of the port as a String value.

Example(s):

   on COM2
   begin
      put COM2 into Buffer
   end


Back Previous Next