Visual Basic Tutorial

Visual Basic Integrated Development Environment(IDE)

VISUAL BASIC IDE (INTEGRATED DEVELOPMENT ENVIRONMENT ) is the environment in which its program are written and executed. IDE stands for Integrated Development Environment. IDE is a term commonly used to describe the interface and environment for creating your application. It is called IDEbecause you can access all of the development tools that you need for developing an application. For Animated …

Visual Basic Integrated Development Environment(IDE) Read More »

Application Of Visual Basic

Visual Basic is the most sophisticated tool for developing commercial applications .Various information system are implementing in VISUAL BASIC today,these are as follows: Various information system are implementing in VISUAL BASIC today,these are as follows: MIS(Management Information System), EIS(employee Information System), Inventory control, ERP(Enterprise Resource Planning), Web application, Library Management System Etc. VISUAL BASIC is …

Application Of Visual Basic Read More »

Variables

Any programming language requires to store values temporarily for different purposes like calculations Adding, multiplying etc.Visual Basic gives the need for variables. You can think of variable, a place in memory of computer for an unknown value. For example when you call someone, then you call him /her by name, like that every variable has name. Variable name is …

Variables Read More »

Constants

Constants as the name suggests , never change during the execution of program.They remain same throughout the program execution. When the user wants a value that never changes, a constant can be declared and created. The syntax for declaring a constant is: (Public|Private) Const constantname (As type) = expression The const statement can be declared …

Constants Read More »

Modules

A module is a set of functions and a set of data members.Code in Visual Basic is stored in the form of Modules. Collection of general procedures, variable declarations, and constant definitions used by application is known as module. Mainly Visual Basic supports 3 types of modules: (1) Form module (2) Standard Module (3) Class …

Modules Read More »

Introduction of Array

An array is the collection of similar data types.The individual elements of an array is identified by using an index. Each index number in an array is allocated individual memory space. Hence users declare arrays of larger size than required. Array helps in creating smaller and simpler code in many situation.You can setup loops that …

Introduction of Array Read More »

Declaration Of Array

Syntax: Dim arrayname(number) as Datatype Example: Dim total(10) as integer Here total is name of array ,10 is no of elements in the array & integer is the data type.Number 10 included in the parenthesis is the upper limit of the array. The above declaration creates an array with index numbers ranging from 0 to …

Declaration Of Array Read More »

If…Then..Else Statement

It conditionally executes a group of statements depending upon value of the expression. If…Then…Else block is used to define several blocks of statements ,in order to execute one block. Syntax: If <condition>then [statements] Else if <condition>Then [else if statement] . . . Else [elsestatement] End If Example: If a<10 then a=a+10 elseif a>15 then a=a-10 …

If…Then..Else Statement Read More »

Do…Loop Structure

Do…loop is used to execute a block of statements for indefinite number of times. There are several variations of Do…Loop statement. Each variation evaluates a numeric condition to determine whether to continue execution or not. Syntax: Do While <condition> statements… Loop Note that: 1.When Visual Basic executes Do While loop, it first tests condition. 2.If …

Do…Loop Structure Read More »

Sub Procedures

A Sub procedure is a block of code that is executed in response to an event. By breaking the code in a module into Sub procedures, it becomes much easier to find or modify the code in your application. Syntax: [Private|Public][Static]Sub procedurename (arguments) statements End Sub Each time when procedure is called, the statements between Sub and End Sub are executed. Sub procedures can be placed in …

Sub Procedures Read More »

Function Procedures

Function Procedures return values. you can use Function statement to write your own Function procedures. Like a Sub procedure, a Function procedure is a separate procedure that can take arguments, perform a series of statements, and change the value of its arguments. Syntax: [Private|Public][Static]Function procedurename (arguments) [As type] statements End Function Note that: 1.You call …

Function Procedures Read More »

Property Procedures

Property procedures are the procedures that return values and also assign values to the property of objects. Visual Basic provides three kinds of property procedures, as described in the following table. Procedure Procedure Property Get Returns the value of a property. Property Let ets the value of a property. Property Set Sets the value of an object …

Property Procedures Read More »

Visual Basic Functions

A function is a preprogrammed calculation .It can be carried out on request from any point in a Visual Basic program. A function takes one or more arguments and returns a single value and it can be included in an expression. Argument: It is a value on which a function or procedure operates. For example, …

Visual Basic Functions Read More »

Methods

Methods are associated with objects, and define the actions they carryout for their object. For Example: The methods of your radio are on, off, volume control etc, Which give you control on your radio.Each Method performs a particular action. Method is an action that an object is capable of performing. For example: list boxes have …

Methods Read More »

Scroll to Top