DOCUMENT:Q134882  15-FEB-2000  [foxpro]
TITLE   :DOCERR: Incorrect Code Sample Coordinating Toolbars and Forms
PRODUCT :Microsoft FoxPro
PROD/VER:WINDOWS:3.0
OPER/SYS:
KEYWORDS:

======================================================================
-------------------------------------------------------------------------------
The information in this article applies to:

 - Microsoft Visual FoxPro for Windows, version 3.0 
-------------------------------------------------------------------------------

SUMMARY
=======

Page 346 of the Visual FoxPro Developer's Guide provides an incorrect code
sample that is supposed to show how to coordinate form sets and toolbars

MORE INFORMATION
================

In the "Coordinating Toolbars and Forms Using Code" section in the Developer's
Guide there is an example of how to add a toolbar to a form set using code. This
example is incorrect. The correct code is:

      SET CLASSLIB to inventory
      This.Addobject("tbrPrint","printing")
      This.tbrPrint.Show

Note that the comand to specify the library containing the toolbar class is SET
CLASSLIB, not SET PROCEDURE. Also, the Object Reference "This" must be used to
reference the instance of the toolbar.

Additional query words: 3.00 VFoxWin

======================================================================
Keywords          :  
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 2000.