0% found this document useful (0 votes)
28 views

Visual Basic Language Features and Usage: May Ann N. Veloria January 17, 2017 COE 221

This document provides an overview of Visual Basic language features and usage, including: - Visual Basic is an event-driven and object-oriented programming language used to create Windows applications. - Key Visual Basic concepts covered include arrays, collection initializers, constants, control flow, data types, declared elements, delegates, early and late binding, error types, events, interfaces, LINQ, objects and classes, operators and expressions, procedures, statements, strings, variables, and XML. - The document outlines the steps to program in Visual Basic, including gathering requirements, designing the user interface and processing objects, coding, testing, documenting, and maintaining the program. - The difference between syntax errors found during

Uploaded by

Rose Ann Veloria
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views

Visual Basic Language Features and Usage: May Ann N. Veloria January 17, 2017 COE 221

This document provides an overview of Visual Basic language features and usage, including: - Visual Basic is an event-driven and object-oriented programming language used to create Windows applications. - Key Visual Basic concepts covered include arrays, collection initializers, constants, control flow, data types, declared elements, delegates, early and late binding, error types, events, interfaces, LINQ, objects and classes, operators and expressions, procedures, statements, strings, variables, and XML. - The document outlines the steps to program in Visual Basic, including gathering requirements, designing the user interface and processing objects, coding, testing, documenting, and maintaining the program. - The difference between syntax errors found during

Uploaded by

Rose Ann Veloria
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

May Ann N.

Veloria January 17, 2017


COE 221

Visual Basic Language Features and Usage


VISUAL BASIC 2005/ 2008
• Computer language developed to help you create application programs that work
with the Windows OS.
• Features:
– Event-driven language - does not follow a predefined sequence of
instructions depending on which event occurs.
– Object-oriented (OO) language -uses software objects that can respond
to events. Objects combine programming code with data

Visual Studio/ VISUAL BASIC 2015


Arrays
Discusses making your code more compact and powerful by declaring and using arrays,
which hold multiple related values.

Collection Initializers
Describes collection initializers, which enable you to create a collection and
populate it with an initial set of values.

Constants and Enumerations


Discusses storing unchanging values for repeated use, including sets of related
constant values.

Control Flow
Shows how to regulate the flow of your program's execution.

Data Types
Describes what kinds of data a programming element can hold and how that data is
stored.

Declared Elements
Covers programming elements you can declare, their names and characteristics, and how
the compiler resolves references to them.

Delegates
Provides an introduction to delegates and how they are used in Visual Basic.

Early and Late Binding


Describes binding, which is performed by the compiler when an object is assigned to
an object variable, and the differences between early-bound and late-bound objects.
Error Types
Provides an overview of syntax errors, run-time errors, and logic errors.

Events
Shows how to declare and use events.

Interfaces
Describes what interfaces are and how you can use them in your applications.

LINQ
Provides links to topics that introduce Language-Integrated Query (LINQ) features and
programming.

Objects and Classes


Provides an overview of objects and classes, how they are used, their relationships
to each other, and the properties, methods, and events they expose.

Operators and Expressions


Describes the code elements that manipulate value-holding elements, how to use them
efficiently, and how to combine them to yield new values.

Procedures
Describes Sub, Function, Property, and Operator procedures, as well as advanced
topics such as recursive and overloaded procedures.

Statements
Describes declaration and executable statements.

Strings
Provides links to topics that describe the basic concepts about using strings in
Visual Basic.

Variables
Introduces variables and describes how to use them in Visual Basic.

XML
Provides links to topics that describe how to use XML in Visual Basic.
STEPS ON HOW TO PROGRAM IN VISUAL BASIC
1. Gather and Analyze the Program Requirements.
Identifies the program requirements and documents these
requirements.

2. Design the User Interface


Design Time – is when the programmer designs and maintains
the program
Set the Properties
3. Design the Program Processing Objects
Program processing objects refers to the
tasks/functionalities required within the program.
The programmer determines what processing objects are
required, and determines the requirements of each object.

Input Process Output


4. Code the Program
5. Test and Debug the program
6. Document the Program/System
It is the writing down in a prescribed manner the
instructions for using the program, program functionality,
and other items that the user might require.
7. Maintain the program/system
After a program is put into use, the program likely will have
to be changed sometime in the future to reflect any
modifications that are deemed necessary.
Difference between SYNTAX ERROR and LOGICAL ERROR

SYNTAX ERROR
Syntax errors are those that appear while you write code. Visual Basic checks your
code as you type it in the Code Editor window and alerts you if you make a mistake,
such as misspelling a word or using a language element improperly. Syntax errors are
the most common type of errors. You can fix them easily in the coding environment as
soon as they occur.
- Note
The Option Explicit statement is one means of avoiding syntax errors. It forces you
to declare, in advance, all the variables to be used in the application. Therefore,
when those variables are used in the code, any typographic errors are caught
immediately and can be fixed.

LOGICAL ERROR
Logic errors are those that appear once the application is in use. They are most
often unwanted or unexpected results in response to user actions. For example, a
mistyped key or other outside influence might cause your application to stop working
within expected parameters, or altogether. Logic errors are generally the hardest
type to fix, since it is not always clear where they originate.

Parts of VB 2015 Express User Interface


Parts of VB 2015 Express User Interface

You might also like