Visual Basic  Rick, Albert. 1. Visual Basic 1.0 (May 1991) was released for Windows at the Comdex/Windows World trade show in Atlanta, Georgia.1991 2.

Slides:



Advertisements
Similar presentations
Introduction to Visual Basic.NET Uploaded By: M.Sheraz anjum.
Advertisements

Objectives Understand the software development lifecycle Perform calculations Use decision structures Perform data validation Use logical operators Use.
Customisation The GUI in most GIS applications is sufficient for most needs. However, situations arise where you want either to: –Modify the interface,
Introduction to Visual Basic Programming. Lecture Outline History What is Visual Basic First Look at the VB 6.0 Environment Some VB Terminology Our first.
Using Visual Basic 6.0 to Create Web-Based Database Applications
Chapter 8: Introduction to High-level Language Programming Invitation to Computer Science, C++ Version, Third Edition.
Visual Basic Relevant paradigm and problem domains overview.
To type the VB code behind the command button (named cmdPush), Double-Click on the Push Me (caption) command button As a result the Visual Basic Code Window.
Chapter 8: Introduction to High-level Language Programming Invitation to Computer Science, C++ Version, Third Edition.
Chapter 8: Introduction to High-Level Language Programming Invitation to Computer Science, C++ Version, Fourth Edition.
VB .NET Programming Fundamentals
1 An Introduction to Visual Basic Objectives Explain the history of programming languages Define the terminology used in object-oriented programming.
Programming Concepts MIT - AITI. Variables l A variable is a name associated with a piece of data l Variables allow you to store and manipulate data in.
By: Md Rezaul Huda Reza Lecturer:  Md Rezaul Huda Reza Former Lecturer of  Bexley College under University.
Microsoft Visual Basic 2012 CHAPTER ONE Introduction to Visual Basic 2012 Programming.
Microsoft Visual Basic 2005 CHAPTER 1 Introduction to Visual Basic 2005 Programming.
Python quick start guide
Chapter 9 Interactive Multimedia Authoring with Flash - Introduction to Programming “Computers and Creativity” Richard D. Webster, COSC 109 Instructor.
Visual Basic Fundamental Concepts. Integrated Development Enviroment Generates startup form for new project on which to place controls. Features toolbox.
Introduction 01_intro.ppt
Language Evaluation Criteria
A First Program Using C#
Invitation to Computer Science 5th Edition
Microsoft Visual Basic 2005: Reloaded Second Edition
Using Visual Basic 6.0 to Create Web-Based Database Applications
Introduction to Visual Basic. Quick Links Windows Application Programming Event-Driven Application Becoming familiar with VB Control Objects Saving and.
PROGRAMMING IN VISUAL BASIC.NET VISUAL BASIC BUILDING BLOCKS Bilal Munir Mughal 1 Chapter-5.
Programming language A programming language is an artificial language designed to communicate instructions to a machine,languageinstructionsmachine particularly.
PROBLEM SOLVING The first step in writing instructions to carry out a task is to determine what the output should be (What should the task produce?)
Chapter 11 An Introduction to Visual Basic 2008 Why Windows and Why Visual Basic How You Develop a Visual Basic Application The Different Versions of Visual.
Programming in C#. I. Introduction C# (or C-Sharp) is a programming language. C# is used to write software that runs on the.NET Framework. Although C#
 Application – another name for a program.  Interface – is what appears on the screen when the application is running.  Program Code – is instructions.
Computer Programs and Programming Languages What are low-level languages and high-level languages? High-level language Low-level language Machine-dependent.
Controlling Execution Programming Right from the Start with Visual Basic.NET 1/e 8.
C# Language Panithan Chandrapatya Agenda C# History C# Goals C# Fixes C# Contribution C# Features C# Success C# Example.
CS285 Visual Basic 2 Department of Computing UniS 1 Statements in Visual Basic A statement is the fundamental syntactical element of a program smallest.
Visual Basic Programming
Chapter 11 An Introduction to Visual Basic 2005 Why Windows and Why Visual Basic How You Develop a Visual Basic Application The Different Versions of Visual.
1 Flow Control Ifs, loops. 2 Data Type At the lowest level, all data in a computer is written in 1’s and 0’s (binary) How the data gets interpreted, what.
‘Tirgul’ # 2 Enterprise Development Using Visual Basic 6.0 Autumn 2002 Tirgul #2.
8-1 Compilers Compiler A program that translates a high-level language program into machine code High-level languages provide a richer set of instructions.
Introduction to Programming Lecture Note - 2 Visual Basic Programming Fundamentals.
Chapter 1 Introduction Visual Basic.NET. Copyright (c) 2003 by Prentice Hall Provided By: Qasim Al-ajmi 2 Objectives Explain what Visual Basic is Contrast.
Introduction to Programming Lecture 2 Msury Mahunnah, Department of Informatics, Tallinn University of Technology.
Controlling Program Flow with Decision Structures.
More Visual Basic Code: if-then-else, for loops Controls: Multiple forms, List Boxes, Radio buttons, frames,
Microsoft Visual Basic 2015 CHAPTER ONE Introduction to Visual Basic 2015 Programming.
Michael Harper Jasen Michalski Mark Hudson. Problem Domain.
Chapter 4.  Variables – named memory location that stores a value.  Variables allows the use of meaningful names which makes the code easier to read.
Visual Basic Declaring Variables Dim x as Integer = 0 In the statement above, x is being declared as an Integer (whole number) and is initialised.
Programming Languages Concepts Chapter 1: Programming Languages Concepts Lecture # 4.
Invitation to Computer Science 5 th Edition Chapter Ada Programming in Ada.
First appeared Features Popular uses Basic This language emphasises on ease of use, allowing general purpose programming to those with a small amount of.
Visual Basic Fundamental Concepts
Introduction to Programming Lecture 2
Chapter 10 Programming Fundamentals with JavaScript
VBA - Excel VBA is Visual Basic for Applications
Introduction to Visual Basic 2008 Programming
Microsoft Access Illustrated
Chapter 10 Programming Fundamentals with JavaScript
VISUAL BASIC.
Visual Basic..
Typescript Programming Languages
CIS16 Application Development – Programming with Visual Basic
CIS 16 Application Development Programming with Visual Basic
Fundamentals of visual basic
Language Constructs Construct means to build or put together. Language constructs refers to those parts which make up a high level programming language.
Michael Harper Jasen Michalski Mark Hudson
PYTHON - VARIABLES AND OPERATORS
Presentation transcript:

Visual Basic  Rick, Albert

1. Visual Basic 1.0 (May 1991) was released for Windows at the Comdex/Windows World trade show in Atlanta, Georgia Visual Basic 1.0 for DOS was released in September 1992.it was actually the next version of Microsoft's DOS-based BASIC compilersDOS Visual Basic 2.0 was released in November easier to use, and its speed was improved Visual Basic 3.0 was released in the summer of 1993 and came in Standard and Professional versions Visual Basic 4.0 (August 1995) was the first version that could create 32-bit as well as 16-bit Windows programs bit16-bit 6. With version 5.0 (February 1997), Microsoft released Visual Basic exclusively for 32-bit versions of Windows bit 7. Visual Basic 6.0 (Mid 1998) improved in a number of areas [8] including the ability to create web-based applications1998 [8]

About VB  Visual Basic (VB) is the third-generation event-driven programming language and integrated development environment (IDE) from Microsoft for its COM programming model. Visual Basic is relatively easy to learn and use.third-generationevent-driven programming languageintegrated development environment MicrosoftCOM  Visual Basic was derived from BASIC and enables the rapid application development (RAD) of graphical user interface (GUI) applications, access to databases using Data Access Objects, Remote Data Objects, or ActiveX Data Objects,BASICrapid application development (RAD)graphical user interface (GUI)databasesData Access Objects Remote Data ObjectsActiveX Data Objects  A programmer can put together an application using the components provided with Visual Basic itself. Programs written in Visual Basic can also use the Windows API, but doing so requires external function declarations. componentsWindows API

VB environment

VB sample program Comments The Main procedure Input and output Sub Main(ByVal cmdArgs() As String) Function Main() As Integer Function Main(ByVal cmdArgs() As String) As Integer Sub Main()

Readability  Visual Basic is based on simplicity. Programmers use a few fundamental types of objects to build an application. -Good  VB requires user to prefix assignments on “objects” with Set. But if user try to put a Set in front of assignments on what VB considers primitives, user will get an error that reads “Object required: …….”. -Bad  VB consists of features and syntax borrowed from other languages -Bad

Writability  VB is easy to learn and write -Good  It can be used as a front end to SQL (or other databases) allowing the user to enhance the way they access their data. -Good  It can also be used to create ActiveX and COM components for use online or in desktop applications. -Good  VB is a "component integration language" which utilizes Microsoft's Component Object Model ("COM") that allows parts to be bolted onto programs easily. -Good

Reliability  It is not suited to complex modern programming techniques. -Bad  VB is an interpreted language which again slows the execution of your program down. -Bad  As you can control the checking and warning systems in VB it often enables the programmer to write code that is very difficult to troubleshoot when a bug arises. -Bad  The programs a programmer produces in VB are not portable and cannot be used on non- Windows systems. -Bad

Cost  Visual Basic can be purchased by itself. Visual Basic. Net is only sold as part of what Microsoft calls Visual Studio.NET. Visual Studio.NET also includes the other Microsoft supported.NET languages, C#.NET, J#.NET and C++.NET. Visual Studio comes in a variety of versions with different capabilities that go well beyond just the ability to write programs.  Fortunately, Microsoft also provides a completely free version of Visual Basic called Visual Basic.NET 2005 Express Edition (VBE).  In October 2006, Microsoft's posted list prices for Visual Studio.NET ranged from $800 to $2,800 although various discounts are often available.

Personal Programming  The term "Personal Programming" refers to the idea that, wherever you work, whatever you do, you can expand your computer's usefulness by writing applications to use in your own job.  Personal Programming is what Visual Basic is all about.

3-Step approach for creating programs VB presents a 3-step approach for creating programs:  Design the appearance of your application.  Assign property settings to the objects of your program.  Write the code to direct specific tasks at runtime.

Areas Visual Basic is Used Visual Basic is used in a number of different areas, for example:  Education  Research  Medicine  Business  Commerce  Marketing and Sales  Accounting  Consulting  Law  Science

Statements (Else-If Statement) Ex: Dim count As Integer = 0 Dim message As String If count = 0 Then message = "There are no items." ElseIf count = 1 Then message = "There is 1 item." Else message = "There are " & count & " items." End If

Statements (For...Next Statement) Ex: For index As Integer = 1 To 5 Debug.Write(index.ToString & " ") Next Debug.WriteLine("") ' Output: This statement repeats a group of statements a 5 times.

Data Types String Variable Examples: This code is used to declare a string variable. Private Sub Form_Load() Dim City As String End Sub This code is used to initialize a variable after it's been declared. If you want its area of memory to be empty, you can assign it two double quotes. Private Sub Form_Load() Dim City As String City = "" End Sub

Data Types Boolean Boolean variables are values that can be only either True of False. To declare a Boolean variable, use the Boolean keyword. Private Sub Form_Load() Dim Married As Boolean End Sub You can initialize a Boolean variable by assigning it to either True or False after you declared it. Private Sub Form_Load() Dim Married As Boolean Married = False End Sub

Loops A Do loop repeats a block of statements while a Boolean condition is true or until the condition becomes true. Dim index As Integer = 0 Do While index <= 10 Debug.Write(index.ToString & " ") index += 1 Loop Debug.WriteLine("") ' Output: For Loop Ex: Private Sub Form_Load() For i = 1 To 10 Step 1 Print "programmershelp" Next i End Sub

Program Examples Private Sub Form_Activate ( ) Print Print Print 20 * 10 Print 20 / 10 End Sub Output:

Private Sub A = Tom B = “likes" C = “to" D = “eat" E = “burger" Print A + B + C + D + E End Sub Private Sub A = Tom B = “likes" C = “to" D = “eat" E = “burger" Print A & B & C & D & E End Sub Output: Tom likes to eat burgers

Who uses Visual Basic?  Microsoft  Vertex  Banamex/Citigroup  Bill Gates developed a version of BASIC for the first microcomputer- the MITS Altair  Mega Corporations

Facts  Visual Basic is most highly utilized in the world of business programming.  Visual Basic was formerly known as "Project Thunder."  Visual Basic is rarely case sensitive.  A 2003 report says that fifty two percent of software developers made use of Visual Basic.

Reference  ns/a/whatisvb_2.htm  ourse.des/cis400/vbasic/vbasic.html  bhistory.htm  hread.php?t=3625  us/library/752y8abs.aspx  us/library/5z06z1kb.aspx   loops.php  ill.htm  programming/visual-basic/visual-basic- fast-facts.php