<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://wiki.signature.net/skins/common/feed.css?270"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.signature.net/index.php?action=history&amp;feed=atom&amp;title=IB_Statements%2Feventwait</id>
		<title>IB Statements/eventwait - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.signature.net/index.php?action=history&amp;feed=atom&amp;title=IB_Statements%2Feventwait"/>
		<link rel="alternate" type="text/html" href="http://wiki.signature.net/index.php?title=IB_Statements/eventwait&amp;action=history"/>
		<updated>2026-05-04T20:37:31Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.16.0</generator>

	<entry>
		<id>http://wiki.signature.net/index.php?title=IB_Statements/eventwait&amp;diff=380&amp;oldid=prev</id>
		<title>Badge: New page: '''EVENTWAIT statement'''   '''Syntax:'''  EVENTWAIT    '''Discussion:'''  The EVENTWAIT statement causes Comet to wait for an event to occur. An event is some action that is external to t...</title>
		<link rel="alternate" type="text/html" href="http://wiki.signature.net/index.php?title=IB_Statements/eventwait&amp;diff=380&amp;oldid=prev"/>
				<updated>2009-05-21T10:53:36Z</updated>
		
		<summary type="html">&lt;p&gt;New page: &amp;#39;&amp;#39;&amp;#39;EVENTWAIT statement&amp;#39;&amp;#39;&amp;#39;   &amp;#39;&amp;#39;&amp;#39;Syntax:&amp;#39;&amp;#39;&amp;#39;  EVENTWAIT    &amp;#39;&amp;#39;&amp;#39;Discussion:&amp;#39;&amp;#39;&amp;#39;  The EVENTWAIT statement causes Comet to wait for an event to occur. An event is some action that is external to t...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''EVENTWAIT statement''' &lt;br /&gt;
&lt;br /&gt;
'''Syntax:'''  EVENTWAIT  &lt;br /&gt;
&lt;br /&gt;
'''Discussion:'''  The EVENTWAIT statement causes Comet to wait for an event to occur. An event is some action that is external to the program, such as a mouse click on a Comet hyperlink. &lt;br /&gt;
&lt;br /&gt;
EVENTWAIT is placed in the program following an EVENTSUB statement. When the program executes the EVENTWAIT statement, Comet waits for the event to occur. In effect, the EVENTWAIT statement performs the same function as the WAIT statement, although without any screen interaction. Some important notes: &lt;br /&gt;
&lt;br /&gt;
In the event handling subroutine, if the EVENTSUB has been set to an event handling subroutine before the RETURN statement is executed, program flow returns to the EVENTWAIT statement when the RETURN statement is executed (see Example 1). &lt;br /&gt;
&lt;br /&gt;
If the EVENTSUB trap has been turned off (EVENTSUB with no parameters) or has not been re-established before the RETURN statement is executed. program flow goes to the statement following the EVENTWAIT statement (see Example 2). &lt;br /&gt;
 &lt;br /&gt;
'''History:'''  This statement was added in Build 311. &lt;br /&gt;
 &lt;br /&gt;
'''Example1'''&lt;br /&gt;
&lt;br /&gt;
  Print (Hyperlink=...&lt;br /&gt;
  Print (Hyperlink=...&lt;br /&gt;
  Print (Hyperlink=...&lt;br /&gt;
  .&lt;br /&gt;
  EVENTSUB GetEvent,Event$,Source$&lt;br /&gt;
  .&lt;br /&gt;
  EVENTWAIT&lt;br /&gt;
  .&lt;br /&gt;
  .&lt;br /&gt;
  .&lt;br /&gt;
  GetEvent:&lt;br /&gt;
  .&lt;br /&gt;
  .&lt;br /&gt;
  .&lt;br /&gt;
  EVENTSUB GetEvent,Event$,Source$  ! Re-establish event trap&lt;br /&gt;
  Return	! Return to EVENTWAIT&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
'''Example 2:'''&lt;br /&gt;
  Print (Hyperlink=...&lt;br /&gt;
  Print (Hyperlink=...&lt;br /&gt;
  Print (Hyperlink=...&lt;br /&gt;
  .&lt;br /&gt;
  EVENTSUB GetEvent,Event$,Source$&lt;br /&gt;
  .&lt;br /&gt;
  EVENTWAIT&lt;br /&gt;
  STOP&lt;br /&gt;
  .&lt;br /&gt;
  .&lt;br /&gt;
  GetEvent:&lt;br /&gt;
  .&lt;br /&gt;
  .&lt;br /&gt;
  .&lt;br /&gt;
  EVENTSUB	! clear Eventsub trap&lt;br /&gt;
  Return	! Return to STOP statement&lt;/div&gt;</summary>
		<author><name>Badge</name></author>	</entry>

	</feed>