SlideShare a Scribd company logo
1 of 59
ASP.NET Technologies
UNIT-2
BCA-5th sem
Chapter 4
Objectives:
● Introduction
● Statement
● Operators
● Procedures
● Variables
● Constant
● Lines and Comments
4.1 Introduction To VB.NET
● An Object-Oriented computer programming language implemented on
the .NET Framework
● Evolution of visual basic language, it is not backwards-compatible with
VB6.
● Everything in VB.NET is an object, including all of the primitive types
(Short, Integer, Long, String, Boolean, etc.) and user-defined types, events,
and even assemblies. All objects inherits from the base class Object.
● VB.NET is implemented by Microsoft's .NET framework. Therefore, it has
full access to all the libraries in the .Net Framework.
● Mono for Mac OSX and for Linux
The following reasons make VB.Net a widely used professional language −
 Modern, general purpose.
 Object oriented.
 Component oriented.
 Easy to learn.
 Structured language.
 It produces efficient programs.
 It can be compiled on a variety of computer platforms.
 Part of .Net Framework.
VB.Net - Program Structure
VB.Net Hello World Example
A VB.Net program basically consists of the following parts −
 Namespace declaration
 A class or module
 One or more procedures
 Variables
 The Main procedure
 Statements & Expressions
 Comments
Let us look at a simple code that would print the words "Hello World" −
Imports System
Module Module1
'This program will display Hello World
Sub Main()
Console.WriteLine("Hello World")
Console.ReadKey()
End Sub
End Module
Identifiers
An identifier is a name used to identify a class, variable, function, or any
other user-defined item. The basic rules for naming classes in VB.Net are as
follows −
 A name must begin with a letter that could be followed by a sequence of
letters, digits (0 - 9) or underscore. The first character in an identifier
cannot be a digit.
 It must not contain any embedded space or symbol like ? - +! @ # % ^ & * (
) [ ] { } . ; : " ' / and . However, an underscore ( _ ) can be used.
 It should not be a reserved keyword.
VB.Net Keywords
The following table lists the VB.Net reserved keywords −
Data Types Available in VB.Net
The Type Conversion Functions in VB.Net
1. Implicit Conversion
2. Explicite Conversion
An implicit conversion does not require any special syntax in the source code.
An explicit conversion uses a type conversion keyword.
VB.Net - Variables
A variable is nothing but a name given to a storage area that our programs
can manipulate. Each variable in VB.Net has a specific type, which determines
the size and layout of the variable's memory; the range of values that can be
stored within that memory; and the set of operations that can be applied to
the variable.
Variable Declaration in VB.Net
The Dim statement is used for variable declaration and storage allocation for
one or more variables. The Dim statement is used at module, class, structure,
procedure or block level.
Syntax for variable declaration in VB.Net is −
VB.Net - Constants
The constants refer to fixed values that the program may not alter during its
execution. These fixed values are also called literals.
VB.Net - Statements
A statement is a complete instruction in Visual Basic programs. It may
contain keywords, operators, variables, literal values, constants and
expressions.
Statements could be categorized as −
● Declaration statements − these are the statements where you name a
variable, constant, or procedure, and can also specify a data type.
● Executable statements − these are the statements, which initiate
actions. These statements can call a method or function, loop or branch
through blocks of code or assign values or expression to a variable or
constant. In the last case, it is called an Assignment statement.
VB.Net - Operators
An operator is a symbol that tells the compiler to perform specific
mathematical or logical manipulations. VB.Net is rich in built-in operators
and provides following types of commonly used operators −
1. Arithmetic Operators
2. Comparison Operators
3. Logical/Bitwise Operators
4. Bit Shift Operators
5. Assignment Operators
6. Miscellaneous Operators
VB.Net - Decision Making
VB.Net - Loops
Do Loop
For...Next Loop
Each...Next Loop
While... End While Loop
Procedures IN VB.NET
A procedure is a group of statements that together perform a task when called. After the
procedure is executed, the control returns to the statement calling the procedure. VB.Net
has two types of procedures −
• Functions
• Sub procedures or Subs
Functions return a value, whereas Subs do not return a value.
ByRef vs ByVal Clarification
VB.Net - Arrays
Declare an Array
Initialization Of An Array
How to Access An Array
VB.Net - Strings
Example:
Methods of the String Class:
Examples:
VB.Net - Classes & Objects
Over riding in VB.NET
● Overriding in VB.net is method by which a inherited property or a method
is overidden to perform a different functionality in a derived class. The
base class function is declared using a keyword Overridable and the
derived class function where the functionality is changed contains an
keyword Overrides.
Cnverting value
Check This Link:
https://www.dotnetperls.com/parse-vbnet
NameSpace and Assembly
Check these link:
1.
http://net-informations.com/faq/framework/namespace-assembly.htm
2.
https://msdn.microsoft.com/en-us/library/ms973231.aspx
DateTime
Check This Link:
https://www.tutorialspoint.com/vb.net/vb.net_date_time.htm
Biblography
● https://www.tutorialspoint.com/vb.net/

More Related Content

What's hot (20)

Vb.net session 01
Vb.net session 01Vb.net session 01
Vb.net session 01
 
Mca 504 dotnet_unit1
Mca 504 dotnet_unit1Mca 504 dotnet_unit1
Mca 504 dotnet_unit1
 
Dotnet Frameworks Version History
Dotnet Frameworks Version HistoryDotnet Frameworks Version History
Dotnet Frameworks Version History
 
Microsoft .Net Technology
Microsoft .Net TechnologyMicrosoft .Net Technology
Microsoft .Net Technology
 
Vb.net class notes
Vb.net class notesVb.net class notes
Vb.net class notes
 
dot NET Framework
dot NET Frameworkdot NET Framework
dot NET Framework
 
.NET Framework
.NET Framework.NET Framework
.NET Framework
 
Net framework
Net frameworkNet framework
Net framework
 
Understanding COM+
Understanding COM+Understanding COM+
Understanding COM+
 
Session2 (3)
Session2 (3)Session2 (3)
Session2 (3)
 
1 what is microsoft .net framework
1 what is microsoft .net framework1 what is microsoft .net framework
1 what is microsoft .net framework
 
Presentation1.pptx
Presentation1.pptxPresentation1.pptx
Presentation1.pptx
 
.Net Session Overview
.Net Session Overview.Net Session Overview
.Net Session Overview
 
Microsoft .Net Framework
Microsoft .Net FrameworkMicrosoft .Net Framework
Microsoft .Net Framework
 
VB.Net GUI Unit_01
VB.Net GUI Unit_01VB.Net GUI Unit_01
VB.Net GUI Unit_01
 
Inside .net framework
Inside .net frameworkInside .net framework
Inside .net framework
 
Component object model and
Component object model andComponent object model and
Component object model and
 
COM
COMCOM
COM
 
.Net overview by cetpa
.Net overview by cetpa.Net overview by cetpa
.Net overview by cetpa
 
Net Framework overview
Net Framework overviewNet Framework overview
Net Framework overview
 

Similar to ASP.Net Technologies Part-2

C#3.0 & Vb 9.0 New Features
C#3.0 & Vb 9.0 New FeaturesC#3.0 & Vb 9.0 New Features
C#3.0 & Vb 9.0 New Featurestechfreak
 
AVB201.1 MS Access VBA Module 1
AVB201.1 MS Access VBA Module 1AVB201.1 MS Access VBA Module 1
AVB201.1 MS Access VBA Module 1guest38bf
 
Apple’s New Swift Programming Language Takes Flight With New Enhancements And...
Apple’s New Swift Programming Language Takes Flight With New Enhancements And...Apple’s New Swift Programming Language Takes Flight With New Enhancements And...
Apple’s New Swift Programming Language Takes Flight With New Enhancements And...Azilen Technologies Pvt. Ltd.
 
Introduction to vb.net
Introduction to vb.netIntroduction to vb.net
Introduction to vb.netJaya Kumari
 
E learning excel vba programming lesson 3
E learning excel vba programming  lesson 3E learning excel vba programming  lesson 3
E learning excel vba programming lesson 3Vijay Perepa
 
Password protected diary
Password protected diaryPassword protected diary
Password protected diarySHARDA SHARAN
 
Phases of the Compiler - Systems Programming
Phases of the Compiler - Systems ProgrammingPhases of the Compiler - Systems Programming
Phases of the Compiler - Systems ProgrammingMukesh Tekwani
 
Vb.net session 04
Vb.net session 04Vb.net session 04
Vb.net session 04Niit Care
 
System verilog important
System verilog importantSystem verilog important
System verilog importantelumalai7
 
Library management system
Library management systemLibrary management system
Library management systemSHARDA SHARAN
 
C# c# for beginners crash course master c# programming fast and easy today
C# c# for beginners crash course master c# programming fast and easy todayC# c# for beginners crash course master c# programming fast and easy today
C# c# for beginners crash course master c# programming fast and easy todayAfonso Macedo
 
Object oriented design patterns for distributed systems
Object oriented design patterns for distributed systemsObject oriented design patterns for distributed systems
Object oriented design patterns for distributed systemsJordan McBain
 
Algorithm-Introduction ,Characterestics & Control Structures.pdf
Algorithm-Introduction ,Characterestics & Control Structures.pdfAlgorithm-Introduction ,Characterestics & Control Structures.pdf
Algorithm-Introduction ,Characterestics & Control Structures.pdfMaryJacob24
 

Similar to ASP.Net Technologies Part-2 (20)

Introduction to Visual Basic
Introduction to Visual Basic Introduction to Visual Basic
Introduction to Visual Basic
 
C#3.0 & Vb 9.0 New Features
C#3.0 & Vb 9.0 New FeaturesC#3.0 & Vb 9.0 New Features
C#3.0 & Vb 9.0 New Features
 
AVB201.1 MS Access VBA Module 1
AVB201.1 MS Access VBA Module 1AVB201.1 MS Access VBA Module 1
AVB201.1 MS Access VBA Module 1
 
c#.pptx
c#.pptxc#.pptx
c#.pptx
 
Apple’s New Swift Programming Language Takes Flight With New Enhancements And...
Apple’s New Swift Programming Language Takes Flight With New Enhancements And...Apple’s New Swift Programming Language Takes Flight With New Enhancements And...
Apple’s New Swift Programming Language Takes Flight With New Enhancements And...
 
C# Dot net unit-3.pdf
C# Dot net unit-3.pdfC# Dot net unit-3.pdf
C# Dot net unit-3.pdf
 
Introduction to vb.net
Introduction to vb.netIntroduction to vb.net
Introduction to vb.net
 
E learning excel vba programming lesson 3
E learning excel vba programming  lesson 3E learning excel vba programming  lesson 3
E learning excel vba programming lesson 3
 
Password protected diary
Password protected diaryPassword protected diary
Password protected diary
 
Phases of the Compiler - Systems Programming
Phases of the Compiler - Systems ProgrammingPhases of the Compiler - Systems Programming
Phases of the Compiler - Systems Programming
 
Vb.net session 04
Vb.net session 04Vb.net session 04
Vb.net session 04
 
System verilog important
System verilog importantSystem verilog important
System verilog important
 
C question
C questionC question
C question
 
Ms vb
Ms vbMs vb
Ms vb
 
Library management system
Library management systemLibrary management system
Library management system
 
ASP.NET Basics
ASP.NET Basics ASP.NET Basics
ASP.NET Basics
 
C# c# for beginners crash course master c# programming fast and easy today
C# c# for beginners crash course master c# programming fast and easy todayC# c# for beginners crash course master c# programming fast and easy today
C# c# for beginners crash course master c# programming fast and easy today
 
I x scripting
I x scriptingI x scripting
I x scripting
 
Object oriented design patterns for distributed systems
Object oriented design patterns for distributed systemsObject oriented design patterns for distributed systems
Object oriented design patterns for distributed systems
 
Algorithm-Introduction ,Characterestics & Control Structures.pdf
Algorithm-Introduction ,Characterestics & Control Structures.pdfAlgorithm-Introduction ,Characterestics & Control Structures.pdf
Algorithm-Introduction ,Characterestics & Control Structures.pdf
 

Recently uploaded

Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxNikitaBankoti2
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIShubhangi Sonawane
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 

Recently uploaded (20)

Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 

ASP.Net Technologies Part-2

  • 2. Chapter 4 Objectives: ● Introduction ● Statement ● Operators ● Procedures ● Variables ● Constant ● Lines and Comments
  • 3. 4.1 Introduction To VB.NET ● An Object-Oriented computer programming language implemented on the .NET Framework ● Evolution of visual basic language, it is not backwards-compatible with VB6. ● Everything in VB.NET is an object, including all of the primitive types (Short, Integer, Long, String, Boolean, etc.) and user-defined types, events, and even assemblies. All objects inherits from the base class Object. ● VB.NET is implemented by Microsoft's .NET framework. Therefore, it has full access to all the libraries in the .Net Framework. ● Mono for Mac OSX and for Linux
  • 4. The following reasons make VB.Net a widely used professional language −  Modern, general purpose.  Object oriented.  Component oriented.  Easy to learn.  Structured language.  It produces efficient programs.  It can be compiled on a variety of computer platforms.  Part of .Net Framework.
  • 5. VB.Net - Program Structure VB.Net Hello World Example A VB.Net program basically consists of the following parts −  Namespace declaration  A class or module  One or more procedures  Variables  The Main procedure  Statements & Expressions  Comments
  • 6. Let us look at a simple code that would print the words "Hello World" − Imports System Module Module1 'This program will display Hello World Sub Main() Console.WriteLine("Hello World") Console.ReadKey() End Sub End Module
  • 7. Identifiers An identifier is a name used to identify a class, variable, function, or any other user-defined item. The basic rules for naming classes in VB.Net are as follows −  A name must begin with a letter that could be followed by a sequence of letters, digits (0 - 9) or underscore. The first character in an identifier cannot be a digit.  It must not contain any embedded space or symbol like ? - +! @ # % ^ & * ( ) [ ] { } . ; : " ' / and . However, an underscore ( _ ) can be used.  It should not be a reserved keyword.
  • 8. VB.Net Keywords The following table lists the VB.Net reserved keywords −
  • 9.
  • 10. Data Types Available in VB.Net
  • 11.
  • 12.
  • 13. The Type Conversion Functions in VB.Net 1. Implicit Conversion 2. Explicite Conversion An implicit conversion does not require any special syntax in the source code. An explicit conversion uses a type conversion keyword.
  • 14.
  • 15.
  • 16. VB.Net - Variables A variable is nothing but a name given to a storage area that our programs can manipulate. Each variable in VB.Net has a specific type, which determines the size and layout of the variable's memory; the range of values that can be stored within that memory; and the set of operations that can be applied to the variable.
  • 17. Variable Declaration in VB.Net The Dim statement is used for variable declaration and storage allocation for one or more variables. The Dim statement is used at module, class, structure, procedure or block level. Syntax for variable declaration in VB.Net is −
  • 18.
  • 19.
  • 20. VB.Net - Constants The constants refer to fixed values that the program may not alter during its execution. These fixed values are also called literals.
  • 21. VB.Net - Statements A statement is a complete instruction in Visual Basic programs. It may contain keywords, operators, variables, literal values, constants and expressions. Statements could be categorized as − ● Declaration statements − these are the statements where you name a variable, constant, or procedure, and can also specify a data type. ● Executable statements − these are the statements, which initiate actions. These statements can call a method or function, loop or branch through blocks of code or assign values or expression to a variable or constant. In the last case, it is called an Assignment statement.
  • 22. VB.Net - Operators An operator is a symbol that tells the compiler to perform specific mathematical or logical manipulations. VB.Net is rich in built-in operators and provides following types of commonly used operators − 1. Arithmetic Operators 2. Comparison Operators 3. Logical/Bitwise Operators 4. Bit Shift Operators 5. Assignment Operators 6. Miscellaneous Operators
  • 25.
  • 30. Procedures IN VB.NET A procedure is a group of statements that together perform a task when called. After the procedure is executed, the control returns to the statement calling the procedure. VB.Net has two types of procedures − • Functions • Sub procedures or Subs Functions return a value, whereas Subs do not return a value. ByRef vs ByVal Clarification
  • 31.
  • 32.
  • 33.
  • 34.
  • 35.
  • 36.
  • 37.
  • 41. How to Access An Array
  • 42.
  • 45. Methods of the String Class: Examples:
  • 46.
  • 47.
  • 48.
  • 49. VB.Net - Classes & Objects
  • 50.
  • 51.
  • 52.
  • 53. Over riding in VB.NET ● Overriding in VB.net is method by which a inherited property or a method is overidden to perform a different functionality in a derived class. The base class function is declared using a keyword Overridable and the derived class function where the functionality is changed contains an keyword Overrides.
  • 54.
  • 55.
  • 56. Cnverting value Check This Link: https://www.dotnetperls.com/parse-vbnet
  • 57. NameSpace and Assembly Check these link: 1. http://net-informations.com/faq/framework/namespace-assembly.htm 2. https://msdn.microsoft.com/en-us/library/ms973231.aspx