CALL MRING
This instruction is available in MDM-Basic and NewModem Basic.
Contents |
Effect
Checks whether the phone rings and returns the result in a variable.
This instruction must be in a "loop" repeatedly called to see which code is returned.
Syntax
CALL MRING(<Variable>)
Parameter
<Variable> stores the result of the operation. It must be an integer variable.
- if value=0 the phone rings
- if value=1 the phone does not ring or there is no telephone
- if value=2 the routine is interrupted because the user has pressed down the break key
- with MDM-Basic, it's the key defined with CALL SET
- with NewModem Basic, it can only be the CODE key - see CALL BREAK
Example
CALL CHKMDM(R%): PRINT R%
Related to
- MDM-Basic: CALL DIAL, CALL SET
- NewModem Basic :CALL BREAK, CALL PDIAL, CALL TDIAL