|
|
|
![]() | |
|
|
|
To access the contents, click the chapter and section titles.
Visual Basic 6 Black Book
Using BookmarksIts been a long night and its nearly dawn, but youre still programming because the deadlines in a few hours. Now youve lost your place in the dozen separate code files that make up the project. There are 10 separate windows open in the IDE and youre switching back and forth between them. Isnt there a better way to mark a location and jump back to it when you need to? There certainly isyou can use a bookmark. You mark a line of code by toggling a bookmark on or off at that location, and when youre ready you can jump back to that bookmark. Setting Bookmarks You set a bookmark at a particular line of code by clicking that line of code and selecting the Toggle Bookmark item in the Bookmarks submenu of the Edit menu, as shown in Figure 2.40. Selecting this same item again would remove the bookmark.
Jumping To A Bookmark Now that youve set a bookmark and moved away from it while editing your code, how do you get back to it? You jump back to a bookmark with the two items in the Bookmarks submenu marked Next Bookmark and Previous Bookmark. (It would be convenient if Visual Basic allowed you to name bookmarks and select from a list of them where to jump to; perhaps that will appear in some future version of Visual Basic.) Using The Object BrowserOne of the best ways of getting an overview of your project is to use the Object Browser. The Object Browser is very useful to get overviews, especially in larger projects. If your version of Visual Basic includes the Visual Basic Object Browser, you open it by selecting the Object Browser item in the View menu or by clicking its icon in the toolbar. The Object Browser opens, as shown in Figure 2.41.
You can scan through all the objects in the project by moving up and down in the Classes list. When you find the type of object you want to examine, select it; its properties and methods appear in the Members pane, as also shown in Figure 2.41. If you want to learn more about a property or method, just select it with the mouse; youll see an explanation of the property or method and the list of parameters for methods.
|
|
Products | Contact Us | About Us | Privacy | Ad Info | Home
Use of this site is subject to certain Terms & Conditions, Copyright © 1996-2000 EarthWeb Inc. All rights reserved. Reproduction whole or in part in any form or medium without express written permission of EarthWeb is prohibited. |