Microsoft KB Archive/67374

= BUG: CIRCLE(x,y),rad,,-0.1,0 Draws Only the Radius in Basic =

Article ID: 67374

Article Last Modified on 8/16/2005

-

APPLIES TO


 * Microsoft QuickBasic Compiler for Macintosh 1.0
 * Microsoft QuickBasic Compiler for Macintosh 1.0
 * Microsoft QuickBasic Compiler for Macintosh 1.0
 * Microsoft QuickBasic Compiler for Macintosh 1.0
 * Microsoft QuickBasic 4.0
 * Microsoft QuickBASIC 4.0b
 * Microsoft QuickBasic 4.5 for MS-DOS
 * Microsoft BASIC Compiler 6.0
 * Microsoft BASIC Compiler 6.0b
 * Microsoft BASIC Professional Development System 7.0
 * Microsoft BASIC Professional Development System 7.1

-



This article was previously published under Q67374



SYMPTOMS
The CIRCLE command takes the following parameters: CIRCLE[STEP](x,y),radius!,,start!,stop! If you specify a start! value that is slightly larger than stop!, the CIRCLE command should draw an almost complete circle. However, if the difference between start! and stop! is very small, CIRCLE may draw only a point or radius. This problem happens in the interpreter environment and in compiled programs.



STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.



MORE INFORMATION
Changing the size of radius changes the requirement for the distance between start! and stop! necessary to reproduce the problem. When start! is near zero, leaving off the stop! produces different results from those obtained when stop! is specified. Use the following code examples to reproduce the problems described above.

Code Examples
' When start! or stop! is negative, CIRCLE draws a radius and ' treats the angle as positive. Without the negative sign, no ' radius is drawn. ' SCREEN 12 'Problem occurs in any graphics screen mode. 10 CIRCLE (50, 50), 50,, -.01        'Works correctly. 20 CIRCLE (50, 150), 50,, -.01, 0    'Should be same as line '10 but draws only the radius. 30 CIRCLE (50, 250), 50,, -.011, 0   'Slightly larger difference 'from start & stop works. 40 CIRCLE (420, 240), 200,, -.01, 0  'This works with same end/start 'as line 20 but has larger 'radius On the Apple Macintosh, use the following code: CIRCLE (50, 50) 10, ,-0.001, 0

Additional query words: QuickBas BasicCom MQuickB B_MQuickB B_QuickBas

Keywords: kbbug KB67374

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.