KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q135041: DOC: Help File Gives Incorrect Info on ColumnCount Property

Article: Q135041
Product(s): Microsoft FoxPro
Version(s): WINDOWS:3.0
Operating System(s): 
Keyword(s): kbdocfix
Last Modified: 15-FEB-2000

-------------------------------------------------------------------------------
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.

Additional query words: 3.00 docerr VFoxWin 5.00

======================================================================
Keywords          : kbdocfix 
Technology        : kbVFPsearch kbAudDeveloper kbVFP300
Version           : WINDOWS:3.0

=============================================================================

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.