Knowledge Base

DOCERR: Incorrect Code Sample Coordinating Toolbars and Forms

Article ID: 134882

Article Last Modified on 2/15/2000


APPLIES TO


This article was previously published under Q134882

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: KB134882