MS Visual Basic

Back    

These are the Basic's of Microsoft Visual Basic programming language, a set of guides or short-cuts for the beginner.

 

Common Things to know while working with MS Visual Basic and as follows


UnLoad Me - unload active or current forms via the Unload Me command and IF this was the Last Active Form, then it will terminate the current Application.

 

Math Operations - supports the standard math operations only

  • example :
    1. A + B              
    2. M * N       
    3. Y / W                
    4. StrName & "Blue"

Format - format any valid variables for display purposes

  • format:

         format( <value>, "$ ##.00")

  • <value> is any valid expression or field








End - terminates or close current window or Form


SHOW - bring's a field or a form to the current Focus

  • example :
    1. me.show;        
    2. Form1.show;

 

Variable Declaration 

  • example :
    1. dim varname as string        
    2. dim xloc as currency        
    3. dim xFlag as boonlean        
    4. dim dtmArraw as date        
    5. dim FstName as string * 20