Microsoft KB Archive/41040
Article ID: 41040
Article Last Modified on 11/21/2006
This article was previously published under Q41040
Any switch of WIDTH causes the PALETTE values to be reset to their default values. In the example code below, the circle is always drawn in the color of the default value for PALETTEs 1 to 15. It should always be drawn in the color corresponding to 15948 (63 * 256). This is true of all SCREENs that allow multiple page lengths.
Microsoft has confirmed this to be a bug in Version 4.00, 4.00b, and 4.50 and in Microsoft Basic Compiler Versions 6.00 and 6.00b for MS-DOS and OS/2 (buglist6.00, buglist6.00b). We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
The following code will reproduce the problem:
CLS SCREEN 12 i=0 FOR k = 1 TO 15 PALETTE k, 63 * 256 i = 30-i WIDTH 80, 30 + i CIRCLE (100, 100), 80, 5 PAINT (100, 100), k, 5 LOCATE 20, 1: PRINT i, k; : INPUT a$ NEXT
Additional query words: QuickBas buglist4.00 buglist4.00b buglist4.50