Microsoft KB Archive/63010

= Cannot Display Array Pointer or Full Basic Array with CodeView =

Article ID: 63010

Article Last Modified on 11/21/2006

-

APPLIES TO


 * 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 Q63010



SUMMARY
The BC.EXE compiler in QuickBasic versions 4.00, 4.00b, and 4.50, in Microsoft Basic Compiler versions 6.00 and 6.00b, and in Microsoft Basic Professional Development System (PDS) versions 7.00 and 7.10 can create programs that will run under Microsoft CodeView versions 2.x and 3.00. However, arrays or arrays in TYPEd records give &quot;?CANNOT DISPLAY&quot; for the CodeView commands ?, ??, or w?. This is not a problem with either the Basic compiler or CodeView, but represents a limitation of debugging Basic programs in CodeView.

This information applies to programs run under CV.EXE and CVP.EXE 2.x and 3.00 when compiled with the BC.EXE compiler that comes with QuickBasic versions 4.00, 4.00b, and 4.50, Microsoft Basic Compiler versions 6.00 and 6.00b for MS-DOS and MS OS/2, and Microsoft Basic PDS versions 7.00 and 7.10 for MS-DOS and MS OS/2.



MORE INFORMATION
In CodeView, the ? command is used to display an expression. The ?? command is used to graphically view a variable in a dialog box. ?? will expand a variable, such as a TYPEd record, to show the fields and the value currently assigned to each field.

This limitation also applies to the CodeView 3.00 command ??, where the graphical display (??) can expand the elements of an array. For example, an array in C (int intarray[10];) can be displayed as a far pointer with ? and expanded to its elements with ??. With CodeView 2.x and C version 5.10, the ?? command won't display the elements of a C array, but will display the far pointer value that is the array's address.

Additional query words: QuickBas BasicCom

Keywords: KB63010

-

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

© Microsoft Corporation. All rights reserved.