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 241
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 238 TRACE trace program execution TRACE provides a debugging aid which monitors program execution by printing the number of each line as it is executed. Line numbers are printed in square brackets to the port requested, or the default output port as defined by OPORT. Events and errors are printed as text between the line numbers. For example: 10 TRACE ON 20 READ x 30 FOR i=1 TO x 40...
Page 242
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 239 TRIM$ remove spaces TRIM$ is used to remove all spaces from a string. Examples: PRINT TRIM$ Test Adjusted$ = TRIM$ Input$ Syntax: [string-var] = TRIM$ [string] See also: LTRIM$, RTRIM$
Page 243
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 240 UCASE convert ASCII to uppercase UCASE is used to calculate the upper case ASCII value of a character. Examples: PRINT UCASE 97 B=UCASE98 Syntax: [num-var] = UCASE [num] See also: LCASE$, LCASE, UCASE$
Page 244
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 241 UCASE$ convert string to uppercase UCASE$ is used to convert all characters in a string to upper case. Characters that are already in upper case remain unchanged. This command (or LCASE$) is frequently needed to standardize keyboard input. Examples: PRINT UCASE$ QwErTy result$ = UCASE$ input$ Syntax: [string-var] = UCASE$ [string] See also: LCASE, LCASE, UCASE$
Page 245
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 242 VAL convert string to number VAL is used to convert a string expression representing a numeric value into the actual value it represents. The string may comprise any expression resulting in a numeric value, providing that this does not exceed 32767 - the largest integer value that may be used on the modem. In the following example the integer variable Code is set to 345:...
Page 246
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 243 VAL$ convert number to string VAL$is used to convert a numeric value or expression into its string form. This is the reverse of the VAL function described earlier. In the following example the string variable Code$ is set to 276: code$=VAL$(300-24) The tilde symbol ~ may be used to convert numbers to hexadecimal format before being converted into strings. Examples: Title$=Number...
Page 247
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 244 VOICE set modem to receive voice The VOICE command puts the modem-chip in voice-mode and prepares it for playback or recording. If the modem-chip was in sleep-mode (low power), it is first waken up (see RESET MODEM 2). After VOICE, the commands PLAY, RECORD or SOUND MODEM can be used. Controlling the microphone, Automatic Gain Control (AGC) and other features is done with the PEEK...
Page 248
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 245 Syntax: VOICE See also: PLAY, RECORD, RESET MODEM 2, SPEAKER, VOLUME
Page 249
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 246 VOLUME set loudspeaker volume This command is used to set the volume level of the modems internal loudspeaker and the volume in the headset at the same time. The levels 1, 2 or 3 can be set only. The VOLUME command itself nevers has immediate effect. It must always be followed by SPEAKER ON. Controlling the volume of the headset directly must be done with a POKE command (see VOICE)....
Page 250
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 247 WAIT pause program execution WAIT is used to introduce a delay in program execution. A single parameter is used to specify the length of the delay in one hundredths of a second. For example: WAIT 120 will pause program execution for 1.2 seconds before execution resumes normally at the command following WAIT. Alternatively the delay may be specified in seconds or minutes. Then the...