chap03 - Chapter 3 VB .NET Programming Fundamentals...

Info iconThis preview shows pages 1–11. Sign up to view the full content.

View Full Document Right Arrow Icon
Object-Oriented Application Development Using VB .NET 1 Chapter 3 VB .NET Programming Fundamentals
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Object-Oriented Application Development Using VB .NET 2 Objectives In this chapter, you will: Learn about the VB .NET programming language Write a VB .NET module definition Use VB .NET variables and data types Compute with VB .NET Write decision-making statements Write loops Declare and access arrays
Background image of page 2
Object-Oriented Application Development Using VB .NET 3 Introducing VB .NET VB .NET: Has achieved popularity and widespread acceptance Is a powerful, full-featured, object-oriented development language Is easy to learn and use Supports development of applications for networked environments
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Object-Oriented Application Development Using VB .NET 4 Introducing VB .NET By adopting the OO model, VB .NET encourages good software design Good software design can reduce: Debugging chores Maintenance chores
Background image of page 4
Object-Oriented Application Development Using VB .NET 5 Writing a VB .NET Module Definition VB .NET code can be structured as a module definition, form definition, or class definition Module definition begins with “Module” and ends with “End Module” Form definition is used to create a GUI Class definition is written to represent an object
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Object-Oriented Application Development Using VB .NET 6 Writing a VB .NET Module Definition The VB .NET statements consist of keywords and identifiers Keywords have special meanings to VB .NET VB .NET identifiers are the names assigned by the programmer to modules, procedures, and variables, etc. VB .NET identifiers: Can be of any length Can include any letter or number, but no spaces Must begin with a letter of the alphabet
Background image of page 6
Object-Oriented Application Development Using VB .NET 7 Writing a VB .NET Module Definition VB .NET code is not case sensitive VB .NET compiler does not require indentation of code, but good programming practice encourages indentation Comment lines: Add explanations to code Are ignored by compiler Begin with a single quote (')
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Object-Oriented Application Development Using VB .NET 8 Writing a VB .NET Module Definition Procedures begin with a procedure header, which identifies the procedure and describes some of its characteristics VB .NET has two types of procedures: Function and Sub A Function procedure can return a value A Sub procedure cannot return a value
Background image of page 8
Object-Oriented Application Development Using VB .NET 9 Writing a VB .NET Module Definition Many statements invoke a method to do some work Information sent to a method is called an argument A literal is a value defined within a statement
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Object-Oriented Application Development Using VB .NET 10 Using VB. NET Variables and Data Types A variable: named memory location that can contain data All variables have: Data type – kind of data the variable can contain Name – An identifier the programmer creates to
Background image of page 10
Image of page 11
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/07/2008 for the course CSC 208 taught by Professor Walker during the Spring '06 term at Monroe CC.

Page1 / 50

chap03 - Chapter 3 VB .NET Programming Fundamentals...

This preview shows document pages 1 - 11. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online