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 121
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 118 LOAD ROM load BASIC programs from socket 2 This is used to load a file from ROM or RAM in socket 2 into the program memory. This is only possible in an Argus Programmable Modem with RAM-disk filing system. To initialize the RAM chip in socket 2, the command CLEAR ROM must be entered first. Example: LOAD ROM FAX.PROG Syntax: LOAD ROM [FILE] See also: LOAD, ROM
Page 122
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 119 LTRIM$ remove leading spaces LTRIM$ is used to remove all leading spaces from a string. Examples: PRINT LTRIM$ Test Adjusted$ = LTRIM$ Input$ Syntax: [string-var] = LTRIM$ [string] See also: RTRIM$, TRIM$
Page 123
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 120 MATCH find matching files/data There are two main forms of the MATCH command, which provides the means for searching data streams and file directories for keywords or names. Searching for strings The first form of the command is used to search incoming data from the specified port for occurrences of a specified string. For example: 50 MATCH#1,Password will search the incoming data...
Page 124
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 121 With this syntax of match * is the only possible wildcard character. The wildcard character can be used to search for multiple filenames, in which case MATCH will return the total number of matches found. To show a count of all stored files you could use the command: MATCH FILE *.*.* PRINT Total number of files found: ; MATCH Finally, the U parameter can be used to specify a match with...
Page 125
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 122 MATCH ROM find matching files in socket 2 This is used to search the ROM or RAM in socket two for matching files, file directories, keywords or names. This is only possible in an Argus Programmable Modem with RAM-disk filing system. To initialize the RAM chip in socket 2, the command CLEAR ROM must be entered first. Examples: MATCH ROM CONNECT MATCH ROM STATION*AUT Syntax: MATCH ROM...
Page 126
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 123 MID$ extract middle portion of string MID$ is used to extract a number of characters from the middle of a string. Three parameters are required. The first is the original string, the second is a number indicating the start position within the string, and the third specifies the number of characters to be extracted. In the following example the variable Num$ is set to TWO: 50...
Page 127
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 124 MIN set/read minute value MIN is used to read or set the minute value of the internal clock/calendar. When reading it returns an integer from 0 to 59; similarly, when setting, the specified value must be between 0 and 59. An incorrect value will leave the current setting unchanged. Examples: MIN=15 Duration=(HOUR * 60)+MIN PRINT MIN Syntax: MIN = [integer 0..59] [num-var] = MIN See...
Page 128
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 125 MNP (4/5) ON/OFF turn MNP on/off This is used in the programming environment to turn MNP error correction and compression on or off and has the same effect as the modem commands &E0, &E4 and &E5. To turn MNP2 only on use &E2 and to turn MNP3 only on use &E3, There are no BASIC commands to turn on or off V42 and V42bis, which is a more modern protocol. This must be done with the modem...
Page 129
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 126 MOD integer remainder operator MOD returns the integer remainder from an integer division operation. For example the result of 17 MOD 5would be 2. Examples: Res=Total MOD Fact PRINT 12 MOD 5 Syntax: [num-var] = [integer] MOD [integer] See also: DIV
Page 130
ARGUS Programmable Modem BASIC Programmers Reference Manual © 1990 - 1997 Vidicode Datacommunicatie BV 127 MODEM select standard modem mode MODEM is used to go from the BASIC environment to the standard modem environment. The modem can only return to BASIC with help of the command AT*B, or because of an ON RESET event. The only other method to go from BASIC to standard modem mode is to press the STOP button while the S/A button is in the in position. To jump to modem mode in a T.C.Lite...