BBS: Inland Empire Archive Date: 03-22-92 (09:27) Number: 168 From: MARK BUTLER Refer#: NONE To: SCOTT LEVENTHAL Recvd: NO Subj: screen saving Conf: (2) Quik_Bas
On 03-18-92 Glenn Deneweth wrote to Scott Leventhal... GD> > Once I have constructed a screen in QuickBASIC 4.0, I GD> > may want to save the screen to a file, so that I can GD> > 'pop' it back quickly when I need it. How do I do GD> > this? GD> GD> I'd personally use a Library and save it into an array...but a file is GD> just GD> as easy.... GD> GD> Def Seg = &HB00 'Use &H000 For monicrome GD> BSAVE "FILENAME.BSV" GD> Def seg I'm afraid that's not right, it should be.... DEF SEG = &HB800 'for color cards or.... DEF SEG = &HB000 'for monochrome (hercules type) cards Then you have to tell QB *where* to start BSAVEing (offset 0) and how *much* to save. For 80x25 text save 4000 for screen 1 save 16384 etc. So the whole thing should be rewritten like this... DEF SEG = &HB800 '<---- assuming a color card BSAVE "FILENAME.BSV", 0, 4000 '<--- 4000 if assuming 80x25 text mode DEF SEG ' ^ '^^^^^^ | ' | +---------- beginning at offset 0 ' | ' restore default segment Sorry to rain on your parade Glenn, but Scott wouldn't have gotten anywhere using your method I'm afraid. ------------> MHB :-) ... OFFLINE 1.36 * This is the tagline--> <--No THIS is the tagline --- DB B1062/001271 * Origin: * Bare Bones BBS * (1:105/360)
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