online tutorials, website development, web application development

   

Visual Basic Tutorials

Visual Basic is a Front-end tool

VB Features:

  • Used for Application development
  • Efficient GUI (Graphical User Interface) facilities for screen designing
  • Efficient Language for programming
  • Offer the Integrated Development Environment(IDE)
  • Support advanced facilities like OLE (Object Linking and Embedding), ODBC (Open Database Connectivity), API(Application Programming Interface), etc.,
  • Programming is Object oriented
  • VB has both Compiler and Interpreter
  • VB is based on Event-Driven Model(EDM)


Object

  • Each object has its own data and methods
  • Data are defined as properties
  • The methods are initiated by the events


Programming concepts:

Variable : A name given to the memory location in which the user can store the values. Value of the variable may change in the program.

Constant : A name given to the memory location in which the user can store the values. Value of constant cannot be changed in the program.

Program : Set of instructions.

Keyword or Reserved word : Words which have pre-defined meaning. The meaning cannot be changed by the user.

Identifier : Words which are defined by the programmer.
Ex: Variable name, Constant name, etc.


Data types:

To store whole numbers
  • Integer
  • Long Integer

To store date
  • Date

To store real numbers
  • Single
  • Double

To store monetary value
  • Currency

To store True or False
  • Boolean

To store character(s)
  • String

To store any data type
  • Variant


To display a message in a box
Msgbox "message"


To get input from user
Var=InputBox("Message")