When to use Code VB tools

This page gives an overview of the moments you will be using Code VB tools. The presentation follows the flow of the Code VB menu which is added to the Visual Development Environment.

Declare procedures, variables and constants

Control structures

Class and collection

User Interaction

Error handling

Name

In your code you will use names of objects regularly. The Name submenu provides easy access to many names without having to remember them or spend time looking them up or having to guess with the risk of making errors or typos.

VB procedures

When writing a program you use both built-in and custom - written by you - procedures. These again can be inserted using the Code VB menu. Code VB attempts to use variables already available in you procedure to fill in the arguments. Under Preferences you can customize the way procedures get inserted. As an example, you can set if you want to have explicit arguments used in the procedure call.

The built-in VB procedures contain many useful functions. These have been organized in the menu so that they are easy to find:

Add Fragments of code

The concept of managing a libary of code fragments or snippets is far from new. What is new is that fragments are fully merged in the menu system alongside the built-in vb code which makes it natural to chose built-in code or your own code fragments.

Reference and Tutorials, Custom Search

Admitted, we programmers spend a lot of time looking for sample code and explanations. The MSDN Office library is the most extensive resource. We sprinkled the menu with jumps to the relevant pages. In addition, you can use our Google based custom search which gives priority to selected on-line resources concerning VB.

Tools