Home > Vidicode > Communications System > Vidicode Argus Basic Programmers Reference Manual

Vidicode Argus Basic Programmers Reference Manual

Here you can view all the pages of manual Vidicode Argus Basic Programmers Reference Manual. The Vidicode manuals for Communications System are available online for free. You can easily download all the documents as PDF.

Page 101

ARGUS Programmable Modem 
BASIC Programmers Reference Manual 
© 1990 - 1997 Vidicode Datacommunicatie BV 
98
  
IF ... THEN ... ELSE    condition test 
IF ... THEN ... ELSE is used to make a decision depending upon the value of a logical expression.  To illustrate: 
20 IF X>40 THEN GOTO 250
When this line is executed, the expression X>40 is evaluated, and if the result is true, program execution branches to line 
250; otherwise execution continues at the line following line 20. 
 
In Argus BASIC the THEN...

Page 102

ARGUS Programmable Modem 
BASIC Programmers Reference Manual 
© 1990 - 1997 Vidicode Datacommunicatie BV 
99
  
ILINE    read input line 
ILINE is used to read the status of the specified input line. 
 
The Programmable Modem has sixteen possible lines for external input, numbered 1-16, which are normally configured for 
use as a parallel printer port and the jumper port.  When one of the lines is addressed using the ILINE command, that line 
is automatically configured as a digital input.  This line...

Page 103

ARGUS Programmable Modem 
BASIC Programmers Reference Manual 
© 1990 - 1997 Vidicode Datacommunicatie BV 
100
  
INPUT    read string/number 
INPUT is used to read string or integer values from ports #1 to #3.  A prompt message may be included in the command, 
and input is terminated when a [CR] is received.  A port number can be specified, but if this is omitted the default input port 
as defined by IPORT will be assumed. 
 
The following example displays a prompt message, and then waits for the user to...

Page 104

ARGUS Programmable Modem 
BASIC Programmers Reference Manual 
© 1990 - 1997 Vidicode Datacommunicatie BV 
101
  
•  The result code will be stored as an integer in the systems variable RESULT. 
This is the same as leaving BASIC to give just one command to the modem. 
Examples: 
INPUT X
INPUT#3 Name ;Na$
INPUT ID Number ; Id; Password : ;Pword$
INPUT#2 Time : (HH MM SS) ,Ho, Mi, Se
INPUT ALL Screencode ;S$
INPUT AT SLASH
Syntax: 
INPUT ( #[port], ) (ALL) () (prompt) (,) (;) [num- var]|[string-
var]......

Page 105

ARGUS Programmable Modem 
BASIC Programmers Reference Manual 
© 1990 - 1997 Vidicode Datacommunicatie BV 
102
  
IPORT    default input port 
IPORT is an important system variable that defines the default input port number.  The following commands use the value 
of IPORT as the default port when no port is specified: 
ACTIVE DTR KEY RTS
AT GET KEY$ SEND
CTS GET$ MATCH
DCD INPUT ORI
DSR IRI RECEIVE
Thus to read characters one at a time from port 1 there are two options: 
Byte=GET#1
  or 
IPORT=1 :...

Page 106

ARGUS Programmable Modem 
BASIC Programmers Reference Manual 
© 1990 - 1997 Vidicode Datacommunicatie BV 
103
  
KEY    get byte (no wait) 
KEY is used like GET, to read a byte from a serial input buffer.  Unlike GET, KEY does not wait for data to become 
available, but will a return a 0 if the input buffer is empty. 
 
A port number may be specified, but if this is omitted the default input port as defined by IPORT will be assumed. 
Examples: 
Keystroke=KEY
X=KEY#2
IF KEY#3 THEN 1000
Syntax: 
[num-var]...

Page 107

ARGUS Programmable Modem 
BASIC Programmers Reference Manual 
© 1990 - 1997 Vidicode Datacommunicatie BV 
104
  
KEY$    get character (no wait) 
KEY$ is used like GET$ to read a character from a serial input buffer.  Unlike GET$, KEY$ does not wait for data to 
become available, but will return a null string if the input buffer is empty.  In this respect, GET$ is useful for checking 
whether or not the input buffer is empty - GET cannot be used because there may be [Ctrl-@] characters in the input...

Page 108

ARGUS Programmable Modem 
BASIC Programmers Reference Manual 
© 1990 - 1997 Vidicode Datacommunicatie BV 
105
  
LCASE    convert ASCII to lowercase 
LCASE is used to calculate the lower case ASCII value of a character. 
Examples: 
PRINT LCASE 65
B=LCASE66
Syntax: 
[num-var] = LCASE [num]
See also: 
LCASE$, UCASE, UCASE$
  

Page 109

ARGUS Programmable Modem 
BASIC Programmers Reference Manual 
© 1990 - 1997 Vidicode Datacommunicatie BV 
106
  
LCASE$    convert string to lowercase 
LCASE$ is used to convert all characters in a string to lower case.  Characters that are already in lower case remain 
unchanged. 
 
This command (or UCASE$) is frequently needed to standardize keyboard input. 
Examples: 
PRINT LCASE$ QwErTy
result$ = LCASE$ input$
Syntax: 
[string-var] = LCASE$ [string]
See also: 
LCASE, UCASE, UCASE$
  

Page 110

ARGUS Programmable Modem 
BASIC Programmers Reference Manual 
© 1990 - 1997 Vidicode Datacommunicatie BV 
107
  
LED    control LEDs 
LED is used to control the LEDs on the front of a Programmable Modem (if fitted).  The T.C.Lite never has LEDs fitted. 
 
You can control all user and other modem LEDs, except the POWER LED. 
  LED0   - BUSY 
  LED1   - USER LED1 
  LED2   - USER LED2 
  LED3   - USER LED3 
  LED4   - USER LED4 
  LED5   - USER LED5 
  LED6   - AA 
  LED7   - DCD 
  LED8   - OL 
  LED9   -...
Start reading Vidicode Argus Basic Programmers Reference Manual

Related Manuals for Vidicode Argus Basic Programmers Reference Manual

All Vidicode manuals