<?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%2Fcontrol</id>
		<title>IB Statements/control - 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%2Fcontrol"/>
		<link rel="alternate" type="text/html" href="http://wiki.signature.net/index.php?title=IB_Statements/control&amp;action=history"/>
		<updated>2026-04-19T00:25:32Z</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/control&amp;diff=390&amp;oldid=prev</id>
		<title>Badge: New page: '''CONTROL statement'''   '''Syntax:'''  result-string = CONTROL(lun,control-string [,EXCP=statement-label])    '''Discussion:'''  The CONTROL statement is a general-purpose control statem...</title>
		<link rel="alternate" type="text/html" href="http://wiki.signature.net/index.php?title=IB_Statements/control&amp;diff=390&amp;oldid=prev"/>
				<updated>2009-05-21T11:29:42Z</updated>
		
		<summary type="html">&lt;p&gt;New page: &amp;#39;&amp;#39;&amp;#39;CONTROL statement&amp;#39;&amp;#39;&amp;#39;   &amp;#39;&amp;#39;&amp;#39;Syntax:&amp;#39;&amp;#39;&amp;#39;  result-string = CONTROL(lun,control-string [,EXCP=statement-label])    &amp;#39;&amp;#39;&amp;#39;Discussion:&amp;#39;&amp;#39;&amp;#39;  The CONTROL statement is a general-purpose control statem...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''CONTROL statement''' &lt;br /&gt;
&lt;br /&gt;
'''Syntax:'''  result-string = CONTROL(lun,control-string [,EXCP=statement-label])  &lt;br /&gt;
&lt;br /&gt;
'''Discussion:'''  The CONTROL statement is a general-purpose control statement for the Winsock gateway, XAP gateway, ODBC gateway, serial gateway, and &amp;quot;universal gateway&amp;quot; (for example, the Comet fax driver). &lt;br /&gt;
&lt;br /&gt;
The CONTROL statement sends the specified control-string to the specified logical unit number. &lt;br /&gt;
&lt;br /&gt;
The CONTROL statement also reads the result field from the input buffer and places it in the result-string. A plus sign (+) in the first byte of the result-string indicates that the control function was performed successfully. A minus sign (-) in the first byte indicates that the control was not performed successfully. The remaining bytes of the result-string contain text describing the success or failure of the control function. &lt;br /&gt;
&lt;br /&gt;
The control statement can be used in any situation where a file control results in a return code being automatically placed in the user's buffer. If a file control does not place a result code or string in the buffer, the second part of the control statement will road-block the program waiting for the next input from the driver. &lt;br /&gt;
&lt;br /&gt;
For example, the CONTROL statement performs the same function as the following statements: &lt;br /&gt;
&lt;br /&gt;
FILE (lun) CTL=control-string&lt;br /&gt;
INPUT (lun) result-string&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
'''History:'''  This statement was added to Comet98 in Build 266. &lt;br /&gt;
 &lt;br /&gt;
'''Winsock Examples:'''&lt;br /&gt;
  A$ = CONTROL(lun,&amp;quot;CLOSE&amp;quot;)&lt;br /&gt;
  A$ = CONTROL(lun,&amp;quot;CONNECT server port&amp;quot;)&lt;br /&gt;
  A$ = CONTROL(lun,&amp;quot;CRLF flag&amp;quot;)&lt;br /&gt;
  A$ = CONTROL(lun,&amp;quot;DISCONNECT&amp;quot;)&lt;br /&gt;
  A$ = CONTROL(lun,&amp;quot;GETERROR&amp;quot;)&lt;br /&gt;
  A$ = CONTROL(lun,&amp;quot;LISTEN [port]&amp;quot;)&lt;br /&gt;
  A$ = CONTROL(lun,&amp;quot;OPEN server port&amp;quot;)&lt;br /&gt;
  A$ = CONTROL(lun,&amp;quot;QUIT&amp;quot;)&lt;br /&gt;
  A$ = CONTROL(lun,&amp;quot;TIMEOUT value&amp;quot;)&lt;br /&gt;
  A$ = CONTROL(lun,&amp;quot;WEOL flag&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
'''XAP Examples:'''&lt;br /&gt;
  A$ = CONTROL(0, &amp;quot;COOKIE CART=EMPTY&amp;quot;)&lt;br /&gt;
  A$ = CONTROL(0, &amp;quot;LOGFILE c:\test\cgilog.txt&amp;quot;)&lt;br /&gt;
  A$ = CONTROL(0, &amp;quot;MERGE C:\MILLION.HTM&amp;quot;)&lt;br /&gt;
  A$ = CONTROL(0, &amp;quot;SEND C:\SAMPLE.HTM&amp;quot;)&lt;br /&gt;
  A$ = CONTROL(0, &amp;quot;REDIR http://www.signature.net&amp;quot;)&lt;br /&gt;
  A$ = CONTROL(0, &amp;quot;TYPE 3&amp;quot;)&lt;/div&gt;</summary>
		<author><name>Badge</name></author>	</entry>

	</feed>