Programming Manual for Citizen BASIC Interpreter - MaRCo
Programming Manual for Citizen BASIC Interpreter - MaRCo
Programming Manual for Citizen BASIC Interpreter - MaRCo
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
<strong>Citizen</strong> <strong>BASIC</strong> <strong>Interpreter</strong><br />
1234567890<br />
Ready<br />
3.13.7 CLOSE Statement<br />
【Explanation】<br />
This statement closes the device opened by the OPEN statement.<br />
【Format】<br />
CLOSE channel number<br />
【Parameter】<br />
Channel number:<br />
Designates in #n <strong>for</strong>mat the channel number<br />
of the device opened by the OPEN statement<br />
【E.g.】<br />
CLOSE #1<br />
3.13.8 LINPUT Statement<br />
【Explanation】<br />
This statement inputs the data <strong>for</strong> a line from the console or device to store the<br />
result to the variable. The end of a line in the data to input is judged by the<br />
CR code.<br />
【Format】<br />
LINPUT [prompt 1 ]string type variable<br />
LINPUT [channel number,] string type variable<br />
1 Inputs data from the console to store them to the variable.<br />
2 Inputs data from the device expressed by the channel number to store them to<br />
the variable.<br />
【Parameter】<br />
Prompt:<br />
Channel number:<br />
String type<br />
variable:<br />
Designates the message to display on the console be<strong>for</strong>e data<br />
input.<br />
When omitted, "?" is displayed<br />
Designates the channel number of a device in #n <strong>for</strong>mat when<br />
inputting data from such device.<br />
Designates the variable to which stores data <strong>for</strong> a line input.<br />
Designation of the string type variable is required.<br />
【E.g.】<br />
>LIST<br />
1000 LINPUT "DATA?";A$<br />
1010 PRINT A$<br />
Ready<br />
>RUN<br />
DATA?123<br />
123<br />
Ready<br />
>LIST<br />
1000 OPEN "SER" FOR INPUT AS #1<br />
1010 LINPUT #1,A$<br />
1020 PRINT A$<br />
1030 CLOSE #1<br />
Ready<br />
>RUN<br />
42