DOC: Help File Gives Incorrect Info on ColumnCount Property

Last reviewed: January 8, 1997
Article ID: Q135041
The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, version 3.0

SUMMARY

The Help file incorrectly states the following for the ColumnCount Property:

   For a ComboBox or ListBox control, the ColumnCount property specifies
   the number of Columns the control contains. If ColumnCount is set to
   -1, the control mimics FoxPro version 2.x behavior. If you set
   ColumnCount to 0, no Columns are displayed.

This documentation error has been fixed in Visual FoxPro 5.0 for Windows.

MORE INFORMATION

In fact, if the ColumnCount property is set to -1 for a ListBox or ComboBox control, the following error occurs:

   Expression Evaluated to an Illegal Value

In addition, if the ColumnCount property is set to 0, and a RowSource is specified, the first column (if applicable) of the RowSource is displayed. For example, if the RowSource is set to Customer table, the RowSourceType is set to 2-Alias, and the ColumnCount is set to 0, then the first column of the Customer table will be displayed in the ListBox or ComboBox control.


KBCategory: kbref kbdocerr kbdocfix
KBSubcategory: FxotherDochelp
Additional reference words: docerr 3.00 VFoxWin 5.00


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.

Last reviewed: January 8, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.