07_Introduction_VB[1] - CSI 1306 F “Computing Concepts...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CSI 1306 F “Computing Concepts for Business” LECTURE 7: “INTRODUCTION TO VISUAL BASIC” Introduction to Visual Basic In this lecture, will learn how to write meaningful Visual Basic programs. What is exactly Visual Basic? It is a high-level (3 rd generation) language created by Microsoft Corp. Designed to be fairly easy to learned and used by beginners. It is an extension of the former BASIC language, now incorporating mechanisms for creating fully-fledged GUI (Graphical User Interfaces). It has a strong integration with Microsoft Windows and its Component Object Model (COM). It has evolved over time and given rise to multiple derived languages. Introduction to Visual Basic Some VB-derived languages are: Visual Basic for Applications (VBA): the default programming language behind any Microsoft Office application (Word, Excel, PowerPoint, etc.) Programmers can write VBA programs (modules) to extend the functionalities of any Office application. Visual Basic Script (VBScript): The default language used in ASP web pages. It is a separate language but very similar to VB and became very popular for extending the functionality of web pages from the client side. Visual Basic .NET (VB.NET): Microsoft’s designated successor to VB 6.0. This version represents a significant departure from standard VB, especially in the Object Model. It is part of the Microsoft .NET platform. Visual Basic: Overview We will address the following topics: Program structure Declaring variables Declaring constants Data types Operators Input/Output Flow control constructs  Branching (IF...THEN…ELSE, SELECT CASE)  Looping (DO…WHILE, DO…UNTIL, FOR..NEXT) Program Structure Tells VB to generate an error should it find an undeclared variable being used throughout the program. Program Structure Apostrophe in VB means “comment”, i.e. everything in the line after it will be ignored by the VB compiler. Comments are very useful to make the code clearer to the reader. In our case, the comment refers to some info (full name and number) of the student who wrote the program. Program Structure This is a subroutine. It is defined by Sub… End Sub and can be named as the user wishes. All code in your program must be contained inside of it. Program Structure Where do we write the VB source program?...
View Full Document

This note was uploaded on 09/01/2010 for the course COMPUTER S CSI1306 taught by Professor Aziri during the Spring '10 term at University of Ottawa.

Page1 / 42

07_Introduction_VB[1] - CSI 1306 F “Computing Concepts...

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

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