On Wed, 30 Aug 2000, you wrote:
> I don't know anything about accessing the modem from Basic...
> However I know that you must send commands to the modem terminated by a
> <CR> (CHR$(13)). Not by a <LF>, nor by a <CRLF>.
I don't know of any standard that uses <CR> as a line break. MS uses <CRLF>,
Unix uses <LF>.
Maybe your modem accepts <CR>, but I don't think that's true for all modems.
Choosing <CRLF> is probably a safer bet.
> And I don't know if input$ can be used with external devices...
Why not? As long as it can be OPENed, it should be allowed.
> In case it
> can, shouldn't you use INPUT$(1,#1) or something like that???
The "#" makes the source easier to read, but it is not required.
> Anyways, it
> seems best to me to use a LINE INPUT A$,#1, and then do IF A$<>"OK" THEN
> PRINT "Error"
LINE INPUT only works if the modem is sending <CRLF>. My modem sends <LF> and
therefore LINE INPUT will return with a buffer overflow error (end of line
not detected, so it will keep reading).
Bye,
Maarten
****
Problems? contact [EMAIL PROTECTED] See also http://www.faq.msxnet.org/
****