Leaving the Com open

 BBS: Inland Empire Archive
Date: 11-05-92 (19:52)             Number: 340
From: SCOTT DRYSDALE               Refer#: NONE
  To: OLIVIER MASSE                 Recvd: NO  
Subj: Leaving the Com open           Conf: (2) Quik_Bas
 OM> Is there anybody out there who could tell me how I
 OM> could leave a compiled basic program whitout the
 OM> Communications port being closed? I'm writing a BBS
 OM> utility and this gives me problems :)..

Believe me when I say I know!  Anyways here's your solution:

        IF comport$ <> "0" THEN ' CLOSE comport$
                CLOSE #1        ' which is file #1
                OUT portadd, 3  ' Ex, comport$ = 1, portadd = &H3FC
        end if

What that does is automatically boost your DTR rate right
after closing hence no hangup due to lost DTR.

--- Maximus 2.01wb
 * Origin: The BULLpen BBS * Intel 14.4EX (613)549-5168 (1:249/140)
Outer Court
Echo Basic Postings

Books at Amazon:

Back to BASIC: The History, Corruption, and Future of the Language

Hackers: Heroes of the Computer Revolution (including Tiny BASIC)

Go to: The Story of the Math Majors, Bridge Players, Engineers, Chess Wizards, Scientists and Iconoclasts who were the Hero Programmers of the Software Revolution

The Advent of the Algorithm: The Idea that Rules the World

Moths in the Machine: The Power and Perils of Programming

Mastering Visual Basic .NET