<?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%2Finput</id>
		<title>IB Statements/input - 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%2Finput"/>
		<link rel="alternate" type="text/html" href="http://wiki.signature.net/index.php?title=IB_Statements/input&amp;action=history"/>
		<updated>2026-05-18T17:28:04Z</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/input&amp;diff=756&amp;oldid=prev</id>
		<title>Barb at 22:14, 28 May 2009</title>
		<link rel="alternate" type="text/html" href="http://wiki.signature.net/index.php?title=IB_Statements/input&amp;diff=756&amp;oldid=prev"/>
				<updated>2009-05-28T22:14:58Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 22:14, 28 May 2009&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''INPUT statement (legacy)'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''INPUT statement (legacy)'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''Syntax:'''&amp;nbsp; INPUT [(lun)] variable-list [,EXCP=statement-label] &amp;nbsp;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''Syntax:'''&amp;nbsp; INPUT [(lun)] variable-list [,EXCP=statement-label &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;| NOEXCP&lt;/ins&gt;] &amp;nbsp;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''Note:''' If no lun is specified, the INPUT statement assumes lun 0. &amp;nbsp;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''Note:''' If no lun is specified, the INPUT statement assumes lun 0. &amp;nbsp;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key wikidb:diff:version:1.11a:oldid:333:newid:756 --&gt;
&lt;/table&gt;</summary>
		<author><name>Barb</name></author>	</entry>

	<entry>
		<id>http://wiki.signature.net/index.php?title=IB_Statements/input&amp;diff=333&amp;oldid=prev</id>
		<title>Badge at 10:01, 20 May 2009</title>
		<link rel="alternate" type="text/html" href="http://wiki.signature.net/index.php?title=IB_Statements/input&amp;diff=333&amp;oldid=prev"/>
				<updated>2009-05-20T10:01:28Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;http://wiki.signature.net/index.php?title=IB_Statements/input&amp;amp;diff=333&amp;amp;oldid=332&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Badge</name></author>	</entry>

	<entry>
		<id>http://wiki.signature.net/index.php?title=IB_Statements/input&amp;diff=332&amp;oldid=prev</id>
		<title>Badge at 09:54, 20 May 2009</title>
		<link rel="alternate" type="text/html" href="http://wiki.signature.net/index.php?title=IB_Statements/input&amp;diff=332&amp;oldid=prev"/>
				<updated>2009-05-20T09:54:51Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 09:54, 20 May 2009&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 114:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 114:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Input @(9,&amp;nbsp; 5),Addr1$, 10; _&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;nbsp; &lt;/ins&gt;Input @(9,&amp;nbsp; 5),Addr1$, 10; _&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; @(43, 5),NumEmployees, 4; _&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; @(43, 5),NumEmployees, 4; _&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; @(9,&amp;nbsp; 8),State$, 15; _&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; @(9,&amp;nbsp; 8),State$, 15; _&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key wikidb:diff:version:1.11a:oldid:331:newid:332 --&gt;
&lt;/table&gt;</summary>
		<author><name>Badge</name></author>	</entry>

	<entry>
		<id>http://wiki.signature.net/index.php?title=IB_Statements/input&amp;diff=331&amp;oldid=prev</id>
		<title>Badge: New page: '''INPUT statement (new)'''   '''Syntax:'''  INPUT [(lun)] @(screen-position),variable-name[,length-override]  where:   screen-position = the column and row (respectively) where an entry f...</title>
		<link rel="alternate" type="text/html" href="http://wiki.signature.net/index.php?title=IB_Statements/input&amp;diff=331&amp;oldid=prev"/>
				<updated>2009-05-20T09:53:33Z</updated>
		
		<summary type="html">&lt;p&gt;New page: &amp;#39;&amp;#39;&amp;#39;INPUT statement (new)&amp;#39;&amp;#39;&amp;#39;   &amp;#39;&amp;#39;&amp;#39;Syntax:&amp;#39;&amp;#39;&amp;#39;  INPUT [(lun)] @(screen-position),variable-name[,length-override]  where:   screen-position = the column and row (respectively) where an entry f...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''INPUT statement (new)'''&lt;br /&gt;
 &lt;br /&gt;
'''Syntax:'''  INPUT [(lun)] @(screen-position),variable-name[,length-override] &lt;br /&gt;
where: &lt;br /&gt;
&lt;br /&gt;
screen-position = the column and row (respectively) where an entry field will be created &lt;br /&gt;
&lt;br /&gt;
variable-name = the name of the input variable &lt;br /&gt;
&lt;br /&gt;
length-override = the size of the entry area (number of characters) &lt;br /&gt;
&lt;br /&gt;
'''Note:''' If no lun is specified, the INPUT statement assumes lun 0. &lt;br /&gt;
 &lt;br /&gt;
'''Discussion:'''  This form of the INPUT statement creates a data entry field at the specified screen-position. It differs from the legacy INPUT statement in the following ways: &lt;br /&gt;
&lt;br /&gt;
The entry field is created automatically by Comet &lt;br /&gt;
&lt;br /&gt;
It does not require transmit marks &lt;br /&gt;
&lt;br /&gt;
The field type and length/precision are validated by Comet &lt;br /&gt;
&lt;br /&gt;
It supports multiple entry fields and a specified &amp;quot;tab order&amp;quot; &lt;br /&gt;
&lt;br /&gt;
For example, suppose your program includes a string variable named A$ with a declared length of 10 bytes. The following statement creates a 10-byte entry field starting at column 20, row 12: &lt;br /&gt;
&lt;br /&gt;
:INPUT @(20,12),A$&lt;br /&gt;
&lt;br /&gt;
If you include a length-override parameter, and if the specified length is less than the declared field length, the input data will scroll horizontally if the cursor moves beyond the bounds of the field's entry area. (If the length-override is greater than the declared field length, the lenght-override is not used; the field size is determined by the declared length.) &lt;br /&gt;
For example: &lt;br /&gt;
&lt;br /&gt;
:  INPUT @(20,12),A$,5&lt;br /&gt;
&lt;br /&gt;
In this case, the entry field will be 5 characters, even though the declared length of the field is 10 bytes. &lt;br /&gt;
Suppose your program includes a numeric variable named X with a declared length/precision of 8.3. The following statement creates a right-justified entry field starting at column 10, row 5: &lt;br /&gt;
&lt;br /&gt;
: INPUT @(10,5),X&lt;br /&gt;
&lt;br /&gt;
The above entry field allows data entry up to 5 digits to the left of a decimal point and up to 3 digits to the right of a decimal point. The data entry space also permits a decimal point and minus sign, but no other characters. &lt;br /&gt;
Note: If an entry field is positioned on top of existing screen text, that text will appear inside the data entry space. This is a convenient way to add a default value to the INPUT statement. &lt;br /&gt;
&lt;br /&gt;
'''Multiple fields'''&lt;br /&gt;
 &lt;br /&gt;
The INPUT statement may include multiple fields, and will process them in the order listed, even if this order is not the customary left-to-right, top-to-bottom order of the items displayed on the screen. This feature lets the Internet Basic programmer create a &amp;quot;tab order&amp;quot; for the input screen. &lt;br /&gt;
&lt;br /&gt;
When entering data into a multi-field INPUT statement, the user presses Tab to move from field to field, and presses Enter to transmit the data to the program. See Example 2. &lt;br /&gt;
&lt;br /&gt;
See (Init Input Data) for information on how to display initial input values. &lt;br /&gt;
 &lt;br /&gt;
'''History:'''  This form of the INPUT statement was added to Comet98 in Build 266. &lt;br /&gt;
&lt;br /&gt;
The multi-field version, including the length override feature, was added in Comet98/Comet2000 Build 283. &lt;br /&gt;
 &lt;br /&gt;
'''Example 1:'''  LENGTH 10  &amp;amp; LOCAL A$              ! Define variables&lt;br /&gt;
&lt;br /&gt;
LENGTH 25  &amp;amp; LOCAL B$&lt;br /&gt;
&lt;br /&gt;
LENGTH 8.3 &amp;amp; LOCAL X&lt;br /&gt;
&lt;br /&gt;
LENGTH 3.0 &amp;amp; LOCAL Y&lt;br /&gt;
&lt;br /&gt;
!&lt;br /&gt;
&lt;br /&gt;
PRINT (0) (EN);(CS)                ! Clear screen&lt;br /&gt;
&lt;br /&gt;
!&lt;br /&gt;
&lt;br /&gt;
PRINT &amp;quot;String field 1&amp;quot;,@(0,10)     ! Display prompts&lt;br /&gt;
&lt;br /&gt;
PRINT &amp;quot;Numeric field 1&amp;quot;,@(0,12)&lt;br /&gt;
&lt;br /&gt;
PRINT &amp;quot;String field 2&amp;quot;,@(0,14)&lt;br /&gt;
&lt;br /&gt;
PRINT &amp;quot;Numeric field 2&amp;quot;,@(0,16)&lt;br /&gt;
&lt;br /&gt;
!&lt;br /&gt;
&lt;br /&gt;
INPUT @(17,10) A$                  ! Input fields&lt;br /&gt;
&lt;br /&gt;
INPUT @(17,12) X&lt;br /&gt;
&lt;br /&gt;
!&lt;br /&gt;
&lt;br /&gt;
PRINT &amp;quot;Default value&amp;quot;,@(17,14)     ! Display default values&lt;br /&gt;
&lt;br /&gt;
PRINT &amp;quot;99&amp;quot;,@(17,16)&lt;br /&gt;
&lt;br /&gt;
!&lt;br /&gt;
&lt;br /&gt;
INPUT @(17,14) B$                  ! Input fields&lt;br /&gt;
&lt;br /&gt;
INPUT @(17,16) Y&lt;br /&gt;
&lt;br /&gt;
!&lt;br /&gt;
RUN &amp;quot;QMONITOR&amp;quot;&lt;br /&gt;
&lt;br /&gt;
END &lt;br /&gt;
 &lt;br /&gt;
'''Example 2:'''  LENGTH 30 &amp;amp; LOCAL Company$, Addr1$,Addr2$&lt;br /&gt;
&lt;br /&gt;
LENGTH 20 &amp;amp; LOCAL City$&lt;br /&gt;
&lt;br /&gt;
LENGTH  2 &amp;amp; LOCAL State$&lt;br /&gt;
&lt;br /&gt;
LENGTH  5 &amp;amp; LOCAL Zip$&lt;br /&gt;
&lt;br /&gt;
LENGTH 5.0 &amp;amp; LOCAL NumEmployees&lt;br /&gt;
&lt;br /&gt;
LENGTH 16.2 &amp;amp; LOCAL AnnualSales&lt;br /&gt;
&lt;br /&gt;
.&lt;br /&gt;
&lt;br /&gt;
.&lt;br /&gt;
&lt;br /&gt;
.&lt;br /&gt;
&lt;br /&gt;
Input @(9,  5),Addr1$, 10; _&lt;br /&gt;
      @(43, 5),NumEmployees, 4; _&lt;br /&gt;
      @(9,  8),State$, 15; _&lt;br /&gt;
      @(9,  6),Addr2$, 15; _&lt;br /&gt;
      @(9,  9),Zip$, 15; _&lt;br /&gt;
      @(9,  7),City$,  15; _&lt;br /&gt;
      @(43, 6),AnnualSales, 15&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
This INPUT statement creates 7 entry fields. The first parameter on each line above is the screen location of where each entry field will occur. The second parameter is the field name, and the third parameter is the length override for the entry field. &lt;br /&gt;
&lt;br /&gt;
The &amp;quot;tab order&amp;quot; is Addr1$, NumEmployees, State$, Adr2$, Zip$, City$, and AnnualSales.&lt;/div&gt;</summary>
		<author><name>Badge</name></author>	</entry>

	</feed>