BBS: Inland Empire Archive Date: 04-23-92 (07:58) Number: 183 From: FRANCOIS ROY Refer#: NONE To: MARK REVELS Recvd: NO Subj: Re: DUAL MONITORS Conf: (2) Quik_Bas
MR> I know you can have two display adapters installed and switch between MR> them with MODE.COM; anyone know how to do this from QB 4.5??? <noises of paper shuffling as I trace my PC-Mag issues of Nov. 1985> Note: this was written in the GW-Basic days, when only MONO and CGA cards existed, but it should work for QB/BC too: DEF SEG = 0 REM Select the MONOCHROME display adapter POKE 1040, PEEK(1040) OR 48 SCREEN 0: WIDTH 40: WIDTH 80: LOCATE , , 1, 12, 13 DEF SEG = 0 REM Select the CGA display adapter POKE 1040, (PEEK(1040) AND 207) OR 16 SCREEN 1, 0, 0, 0: SCREEN 0: WIDTH 40: LOCATE , , 1, 7, 7 The article also says: "Before switching monitor types, it is a good idea to record (in an array) the numbers that are contained in memory locations 1097 to 1126. These values can then be confidently restored after the return to the first display." --- ME2_1104 * Origin: Out of String Space - the Final Frontier (Fidonet 1:163/506.2)
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