Microsoft KB Archive/131473

= How to Load the Class Browser into Memory on Startup =

Article ID: 131473

Article Last Modified on 2/15/2000

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition

-



This article was previously published under Q131473



SUMMARY
This article describes how to add the Class Browser item to the System Menu during Startup and, if desired, also load it into memory at startup.



MORE INFORMATION
If you create your own startup routine, you might want to add the following code to it to be sure the default system menu has the Class Browser item.

Calling the Class Browser (BROWSER.APP) with a zero (0) numeric parameter doesn't load the Class Browser, but it does ensure that the Class Browser menu item appears in the Tools menu.

Calling the Class Browser (BROWSER.APP) with a one (1) numeric parameter, adds the menu item and loads the Class Browser into memory. The benefit is that the OLE container support files (outline, OCX files, and so on) are loaded into Windows memory. This is useful if you prefer to place the first- time OLE load delay at start-up rather than when you run/edit a form with an OCX Control.

Step-by-Step Procedure
 Open the VFPSTART.PRG file:  To do this from the MENU:

 From the File menu, choose Open. Change the Files of type to Program. Select VFPSTART.PRG, and choose OK.   To do this from the Command window, issue the following command to bring up the Modify Program window: Modify Command VFPSTART.PRG </li></ol> </li> Enter or modify the following source code:

  Check to see if you have a line in your VFPSTART.PRG file that looks like the following line. If you don't find it, add it. DO (HOME+'BROWSER.APP') WITH 0 &&Adds Class Browser To Menu </li>  If you want the Class Browser to load into memory when at startup, change the 0 parameter to 1 as done here: DO (HOME+'BROWSER.APP') WITH 1 && Adds Class Browser To Menu and && Loads Class Browser into memory </li></ol> </li> Save the Program.</li> Exit and restart Visual FoxPro to make these changes take effect.</li></ol>

Additional query words: VFoxWin

Keywords: KB131473

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.