BBS: Inland Empire Archive Date: 03-05-92 (23:45) Number: 162 From: CHRISTOPHER P. LINDSEY Refer#: NONE To: SHAUN HILLIS Recvd: NO Subj: Attr... Conf: (11) Quik_Bas
If I remember correctly, the attribute is calculated thusly: 128 * Blink% + (16 * Back%) + Fore% where: Blink% = 1 if you want it to blink, Back% = 0 - 7, being the background color, Fore% = 0 - 15, being the foreground color. Color attributes are the same as for QB, so if you wanted, say, flashing bright blue on white (YUCK), then you would have: Blink% = 1: Back% = 7: Fore% = 9 Here's the color breakdown: Black = 0 Dark Gray = 8 Blue = 1 Bright Blue = 9 Green = 2 Bright Green = 10 Cyan = 3 Bright Cyan = 11 Red = 4 Bright Red = 12 Magenta = 5 Bright Magenta = 13 Brown = 6 Yellow = 14 Gray = 7 White = 15 To make it blinking, just add 16 to it... This is for the foreground colors only... The background is limited to only the first eight colors. Hope this helps you out... Chris ... Never step in anything soft. --- BWave/TG v2.05 [NR] * Origin: GREGdoor ver.4 BBS 708-904-2149 (1:115/904.0)
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