KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q63010: Cannot Display Array Pointer or Full BASIC Array with CodeView

Article: Q63010
Product(s): See article
Version(s): 6.00 6.00b 7.00 7.10 | 6.00 6.00b 7.00 7.10
Operating System(s): MS-DOS | OS/2
Keyword(s): ENDUSER | SR# S900606-86 B_QuickBas S_CodeView | mspl13_basic
Last Modified: 5-SEP-1990

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 "?CANNOT
DISPLAY" 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.

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.

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.