0% found this document useful (0 votes)
18 views10 pages

Kami Export - ICT Reviewer

The document provides a comprehensive overview of the history and evolution of Visual Basic from its inception in 1991 to the release of VB.NET in 2002, highlighting key features, advantages, and disadvantages of various versions. It discusses the programming language's event-driven nature, its graphical user interface, and the tools available for developers. Additionally, it includes a comparison of Visual Basic with other programming languages and outlines reserved and restricted words in VB 6.0.

Uploaded by

rainedeerwow
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views10 pages

Kami Export - ICT Reviewer

The document provides a comprehensive overview of the history and evolution of Visual Basic from its inception in 1991 to the release of VB.NET in 2002, highlighting key features, advantages, and disadvantages of various versions. It discusses the programming language's event-driven nature, its graphical user interface, and the tools available for developers. Additionally, it includes a comparison of Visual Basic with other programming languages and outlines reserved and restricted words in VB 6.0.

Uploaded by

rainedeerwow
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

G3 - Casipit, Abby Lorraine B.

Ma’am MACAUYAG
8 Linnaeus April 28, 2023

Group 1: History and Evolution of


Visual Basic
Visual Basic 2.0 - 1992
What is Visual Basic? ● Similar to Visual Basic 1.0, but with
● 3rd generation programming additional tools that improved the
language efficiency of developers.
● Event-driven programming ● A toolbar and a Properties Window
language were two of the new Form design
● It was first released to the public in tools introduced in Visual Basic 2.0.
1991 Additionally, it supported multiple
● Invented by Alan Cooper, and document interfaces and had a
developed by Microsoft variable data type, all of which
Corporation made VB 2.0 development easier.
● A graphical user interface (GUI) Shape, Line, and Image controls,
allows programmers to edit code by Grid Custom Control, Debugging
merely dragging and dropping Features, including Watch
items and specifying their behavior variables, and a Calls Window are
and appearance. some more features.
● Based on BASIC (Beginner’s
All-Purpose Symbolic Instruction Visual Basic 3.0 - 1993
Code) ● The most popular version for
● A Rapid Application Development Windows 3
(RAD) ● Included two editions which are;
Standard and Professional
Visual Basic 1.0 - 1991 ● It is the last to create executables
● Its Syntax is similar to the original that do not require complex
"BASIC" programming language installation, with small runtimes,
● Its code is automatically generated and minimal memory usage.
by drag and drop method for
buttons and scroll bars
Visual Basic 4.0 - 1995 VB.net - 2002
● Has three editions including ● Visual Basic .NET refer to all
Standard, Professional, and Visual Basic languages released
Enterprise. since 2002
● The first version of VB that could ● Used to create applications that
create 32-bit and 16-bit Windows
work with Microsoft's new .NET
programs.
Framework.
● It can also still create 16-bit
executables for Windows 3.1,
however, it integrates a new
Advantages of Visual Basic
OLE-based runtime that is much
● Simple
larger, memory-consuming, and
● Steep learning curve
slower than VB 3.0
● Applicable
● Versatile
Visual Basic 5.0 - 1997
● Easy to learn
● Can only be used in 32-bit versions
of Windows
Disadvantages of Visual Basic
● Programs written in Visual Basic
● Array declaration
4.0 (16-bit) can be easily converted
● Library requirement
to Visual Basic 5.0 and vice versa.
● Cannot customize
● Its development tools offer a new
integrated development environment
(IDE) this new feature made ADVANTAGES OF VB.NET
developers more productive and ● Code will be formatted
efficient. automatically
● Easily create your web forms
Visual Basic 6.0 - 1998 through the visual forms designer.
You will also enjoy drag and drop
● The last version of Visual Basic to
capability to replace any elements
be offered as a stand-alone
you need
development product.
● Connect your applications to others
● Provide graphical,(16 -bit)
created in languages running on
integrated data access to any ODBC
the .NET framework.
or OLE (Obeject-Linking and
● Features like docking, automatic
Embedding) DB data source, and
control anchoring, and an in-place
additional database-design tools for
menu editor are all good for
Oracle and Microsoft SQL
developing web applications
Server-based databases
● The most popular version that is
still used in many businesses DISADVANTAGES OF VB.NET
● VB.NET cannot handle pointers
directly. This is a significant
disadvantage since pointers are form, classes, and modules can all
much necessary for programming. be quickly accessed via Project
Any additional coding will lead to Explorer, as illustrated in the
many CPU cycles, requiring more picture.
processing time. Your application
will become slow. ● Properties Window - There is a
● Intermediate Language (IL) great Properties Window in Visual
compilation Basic 6.0. The Name, Caption, Color,
● Large Libraries Border Style, Font, and other
categories in the Properties
Window are used to customize the
Group 2: Visual Basic 6.0 Tools & Form Design.

FEATURES OF VISUAL BASIC 6.0 ● Object Browser - We can browse


● The capabilities of Visual Basic 6.0 through the many attributes,
offer additional database-design events, and methods that are made
tools for Oracle and Microsoft SQL available to us using the Object
Server-based databases, as well as Browser.
graphical, integrated data access to
any ODBC or OLE DB data source. ● Form Designer - The form designer
produces and alters visual shapes
THE DIFFERENT PARTS AND in the typical project.
FUNCTIONS OF VB 6.0
● Form Layout Window - The Form
● Menu Bar - The menu bar below
Layout window is a
lists the commands needed to
straightforward Visual Basic design
create an application. When
tool that displays a miniature
necessary, submenus are available
version of the active form for the
under the main menu items.
user.
● Toolbox - The user interface area is
created by placing a set of controls
● Toolbar - It has a button with the
from the Toolbox on a Form during
most frequently used commands
design. Using the Components
on it. When a button is clicked, the
menu item on the Project menu
action it represents is carried out.
will add more controls to the
toolbox.
ADVANTAGES OF VB 6.0
● Project Explorer - The Project ● Event driven
Explorer window is docked on the ● The structure of Visual Basic is
right side of the screen, directly what makes it so straightforward.
beneath the toolbar. The project's Specifically, by using executable
code. This structure is simple
enough for a beginner to TOOLBAR VS. TOOLBOX
understand who is new to Toolbar is used for activating the
programming. Even if Microsoft functions of an application or operating
improved the design, there is still system, while a toolbox is a storage case
less intricacy. for tools.
● Rapid Application Development
(RAD) and Visual Basic make it
simple to create Graphical User
Interface (GUI). The web interface is
one such instance. Group 3: Project Explorer Windows
● Because of Visual Basic's
adaptability, it may be used in PARTS OF THE PROJECT EXPLORER
conjunction with other
WINDOWS
programming languages to create
websites using platforms that
● View Code Button - Opens the Code
support JavaScript or XML.
Window, which contains all the
code of the created program, this
also allows users to modify the
codes inputted.

DISADVANTAGES OF VB 6.0 ● View Object Button - Opens the


● Visual Basic is based on the GUI, as Object Window or Form of the
was already mentioned. The selected item
graphical elements in Visual Basic
take up a lot of room. Thus, a ● Toggle Folders - Expands or
unique memory area must be set up compresses folders while showing
for installation. its content
● A significant flaw in Visual Basic is
the declaration of arrays. An array ● List Window - A list that contains
structure cannot be initialized all saved projects and the items in
when a program is in the each project.
declaration phase of development.
● Microsoft is the only company to ● Project - Contain and compile
produce Visual Basic. The only source files into a library-like
operating system on which the component.
applications are guaranteed to run
is Windows. When it comes to ● User forms - All .frm files; Windows
other platforms, the support is created to allow interaction with
incredibly constrained. the user of the program
● Document - The document/s
associated with the project CREATING VISUAL BASIC/PROJECT
Start Visual Basic -> Select “Standard
● Modules - All .bas files; Folders EXE” -> Click “Open” button -> Go to file
where macros are saved -> Click “Open New Project”

● Macros - Action/set of actions SAVING PROJECT


Click on the File -> Choose “Save Project
● Class modules - All .cls files; Module As” -> Dialog Box will appear as “Save
that allows the creation of File As” -> Rename File -> Save
customized objects.
RETRIEVING PROJECT
● ActiveX Designers - All .dsr files; A Click the “Existing” tab -> Click “Project”
component program that enables -> Click the “Open” button
applications to perform numerous
functions
Group 4: Visual Basic 6.0, Properties
● References - Create references to Windows, Toolbox
other projects
TOOLBOX - The Toolbox holds
● Group - Displays a group of objects controls which the user can add to the
used in a project
form during design time. It has a total
of 21 tools.
● Object Name - Displays the name of
a specific object
Tools & functions:

● File name - Displays the filename of


Pointer - Allows you to move and resize
a specific object.
controls drawn on a form.

Project Explorer is divided into 2 panels.


Picture box (pic) - It acts as a container for
The primary panel (top) shows the project
controls and pictures inputted by the
folder structure. The sub-panel (bottom)
user.
shows windows in the folder highlighted
in the primary panel.
Label (lbl) - Allows the user to name a text
that the user cannot modify or interact
with.

Text Box (txt) - Used to display messages


and text that can be edited.
HOW TO CREATE, SAVE, AND
RETRIEVE A PROJECT IN VB 6.0=[-
Frame (fra) - Gives a visual and functional files from which a user can select the
container for controls. desired one.

Command Button (cmd) - Used to carry Shape (shp) - Used to add shape (rectangle,
out the specified action when the user square or circle) to a Form.
chooses it.
Line (lin) - Used to draw a straight line to
Check Box (chk) - Displays a True/False or the Form.
Yes/No option.
Image (img) - Used to display images
Option Box - Control which is part of an such as icons, bitmaps and metafiles. But
option group allows the user to select less capability than the PictureBox.
only one option
even if it displays multiple choices. Data (dat) - Enables the user to connect to
an existing database and display
Combo Box (cbo) - Contains a TextBox and information from it.
a ListBox. This allows the user to select an
item from the dropdown ListBox, or to Object-Linking and Embedding (ole) -
type in a selection in the TextBox. Used to link or embed an object, display
and manipulate data from other windows
List Box (lst) - Displays a list of items from based applications.
which a user can select.

HScroll Bar (hsb) - Allows the user to Properties Windows - allows you to
navigate through the project horizontally. alter the qualities (property settings) of
the user interface components on a
VScroll Bar (vsb) - Allows the user to
form.
navigate through the project vertically

Properties Window Title Bar - Placed at


Timer (tmr) - Executes the timer events at
the top of the properties window, and
specified intervals of time.
displays the name of the object selected.
Also includes a close button which hides
Drive List Box (drv) - Displays the valid
the window when pressed.
disk drives and allows the user to select
one of them.
Object Box - A drop-down list box below
the Title Bar, Which shows the current
Directory List Box (dir) - Allows the user
object selected and allows you to select
to select the directoriesand paths, which
other objects whose properties you want
are displayed
to view or set.

File List Box (fil) - Displays a set of


Property List Tabs - Two tabs, which list
the properties of the selected Group 5: Commonly Used Controls
object either alphabetically or
categorically.
Introduction to Visual Basic Controls
> Controls of Visual Basic are used to
Description Box - Shows the name of the
get user input
selected property and a short description
and to display output. E.g., text box,
of it.
label, check box,
list box, and combo box are all
controls.
Visual Basic 6.0 Parts & Functions:
Command Button (cmd) - Also known as
Title Bar - At the very top of the project the Button control, is used to trigger an
- Contains the maximize, minimize, and action when the user clicks on it.
close buttons
Label Control (lbl) - The Label Control is
Menu Bar - Used to add forms and used to display text in a form
controls
Text Box (txt) - used to accept information
Toolbar - Allows quick access to from the user in the form of text
frequently used commands from the
Menu Bar Checkbox (chk) - Presents a binary choice
to the user where they can select or
Toolbox - Set of controls you can add to deselect an option
your application
Combo Box (cbo) - Allows user to select an
Project Window/Explorer - Lists the item from a dropdown list or enter a new
forms that make up your project value

Properties Window - Displays the List Box (lst) - Is used to display a list of
properties of the selected object items from which the user can select one
or more items
Form Layout Window - Used to change
the forms' default position Picture Box (pic) - used to display images
in a Visual Basic form, it is commonly
Form Container - Where forms are placed used to show animations, graphics, icons,
and photos.
Forms - Windows that makes up the
application
Group 6: Compare and Contrast -
Visual Basic, C++, Python & Scratch

TERMINOLOGIES

> RAD - Rapid Application Development


> GUI - graphical user interface
> .exe - executable files which mostly
contain Windows applications or
application installers
> BASIC - Beginners’ All-purpose GROUP 7: RESERVED AND
Symbolic Instruction Code RESTRICTED WORDS IN VB 6.0
> syntax - refers to the set of rules which
state the proper arrangement and Reserved Words - Reserved Words are
combination of characters to form a valid words that cannot be used as variable
sentence in coding names or identifiers because they have
specific definitions in the Visual Basic
Event-driven programming - language.
programming wherein the program
responds to the user’s events or actions Restricted Words - Restricted Words are
> ActiveX - are component programs reserved by the operating system, not by
developed by microsoft to enable the language.
applications to perform particular
functions RESTRICTED AND RESERVED WORDS
> General - purpose: A programming IN VB 6.0
language for building software in a wide Using reserved or restricted words as
variety of application domains. variable names or identifiers can result in
UNIX: Family of multitasking, multi user syntax errors or unexpected behavior in the
computer operating systems. code.
> Docstring - a string literal specified in
source code that is used, like a comment, Identifiers - A sequence of characters
to document a specific segment of code. "symbols" used to identify or refer to a
> MIT - Massachusetts Institute of program or an element,such as a variable
Technology is a university in Cambridge. or a set of data, within it.

Unreserved Words - These can be used as


names for your programming elements

PART 2: COMMON RESERVED &


RESTRICTED WORDS IN VISUAL
BASIC 6.0 indicate the start of the code block that
should be executed if the condition
AND - Performs a logical AND operation specified in the If statement is false.
on two expressions.
ELSEIF - ''ElseIf' is a keyword that allows
BOOLEAN - Holds values that can be only you to specify additional conditions to
True or False. test if
the previous condition is false.
COMMAND - 'Command' function is a
built-in function that returns a string ENDIF - 'End If' is a keyword pair that
containing indicates the end of an If statement.
the command-line arguments used to
start the current instance of the program. FOR - The 'For' loop is used to execute a
block of code a specific number of times.
CONST - ''Const' is used to declare a
constant variable, which is a variable IF - The 'If' statement is a conditional
whose value cannot be changed during statement that allows you to test whether
runtime. a certain condition is true or false.

DECLARE A VARIABLE - You declare a LOOP - The 'Loop' statement is used to


variable to specify its name and mark the end of a 'Do' loop.
characteristics. The declaration statement
for variables is the Dim Statement. MOD - Divides two numbers and returns
only the remainder.
DIM - Declares and allocates storage space
for one or more variables. OPERATOR - Declares the operator
symbol, operands, and code that define an
DO - The 'Do' loop is used to execute a operator procedure on a class or
block of code repeatedly until a certain structure.
condition is met.
OPTION - 'Option' statement is used to set
DO UNTIL - The 'Do Until' loop repeats various options for the current module or
the block of code until a certain condition project.
becomes true.
OPTION COMPARE - 'Option Compare'
DO WHILE - The 'Do While' loop repeats This option determines how string
the block of code while a certain comparisons are made. The options are
condition is true. Binary (default) or Text.

ELSE - 'Else' is a keyword used in > 'Option Base' This option determines the
conjunction with the If statement to lower bound of arrays. The options are '0'
(default) or '1' 'Option Private Module' This
option makes all variables, procedures,
and functions in the module private.
> They can only be accessed from within
the module.
> 'Option Explicit On Error: This option
requires all errors to be handled explicitly
using the On Error statement.
> If an error occurs and is not handled, a
run-time error is generated.

> Option Strict: This option requires


explicit casting of data types, and
disallows certain implicit type
conversions.

THEN - 'Then' is a keyword used in


conjunction with the 'If' statement to
indicate the start of the code block that
should be executed if the condition
specified in the If statement is true.

VARIANT - A special data type that can


contain any kind of data except
fixed-length String data.

VARTYPE - 'VarType' function is used to


determine the data type of a given
variable.

WEND - The 'Wend' keyword is used to


mark the end of a While loop.

You might also like