0% found this document useful (0 votes)
6 views6 pages

Visual Basic Functions and Controls Guide

Visual Basic has been developed to provide a simple and accessible programming language. It offers modules that simplify common tasks such as string and file handling, and provides basic controls like checkboxes, buttons, and labels for creating graphical user interfaces. Visual Basic also operates in line-by-line interpreted mode or compiled mode to create standalone executable files.

Translated by

ScribdTranslations
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)
6 views6 pages

Visual Basic Functions and Controls Guide

Visual Basic has been developed to provide a simple and accessible programming language. It offers modules that simplify common tasks such as string and file handling, and provides basic controls like checkboxes, buttons, and labels for creating graphical user interfaces. Visual Basic also operates in line-by-line interpreted mode or compiled mode to create standalone executable files.

Translated by

ScribdTranslations
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

FUNCTIONS OF THE BASIC SYSTEM

Visual Basic has been developed with the aim


to deliver to programming users
computer science a package of simple utilities and
accessible. Its base comes from the BASIC dialect but
with innovative components that adapt it to the
modern programming languages. To this is added
that Visual Basic is also a language of
event-driven programming that allows
greater operability and better results.

BASIC operating modes: Interpreted compiled.

In interpreted mode, the 'interpreter' analyzes and executes the program line by line.
while in the compilation the standard procedure for creating a
executable file that does not require any interpreter to run on the system.

In addition, the structuring of BASIC is very flexible; surely, whoever more whoever
less, all of us who are of a certain age have seen BASIC listings in
those that each line of code was numbered with a numbering that,
usually, I jumped by tens.
For example, the typical 'hello world' in BASIC
interpreted, it could be:

10 CLS
20 PRINT "hello world"
30 GOTO 20

The GOTO instruction returns to a specific line number and


proceed with execution from that line number.
This resource, the GOTO instruction, widely used in BASIC, is not accepted.
as a correct practice in structured programming, in which this
construction is replaced by the use of functions and procedures.
These are also available in BASIC, in versions such as Visual Basic.
from Microsoft.
The latter was the one that popularized the language in computers with the graphical environment.
and the Windows operating system, starting from version 3.0 of that environment
programming. However, BASIC had its golden age in the era of the
eight-bit microcomputer.
The vast majority of eight-bit computers "hid" their operating system.
under a BASIC command interpreter, so that it acted as a line
of commands, being the interface with which users worked.
BASIC continues to survive to this day, with modern developments such as the
Gambas environment or the different Visual Studios, but it has lost its user base.
due to the explosion of programming languages that has occurred and the boom of
Internet.
In this sense, BASIC is not adapted to the online world, and although it has a
handful of implementations for mobile devices, it is not optimized for
Hello.
However, it remains an excellent option to enter the exciting
world of programming.

MODULES AND FUNCTIONS IN A BASIC PROGRAM

Visual Basic provides various


modules that allow simplification of the
common tasks in the code, including the
string manipulation, perform
mathematical calculations, obtaining of
system information, the realization
of file and directory operations
and so on. In the table
the following lists the modules
provided by Visual Basic.

Constants: Contains various constants. These constants can be used in


any place in the code.
ControlChars: Contains constant control characters for printing and displaying
text.
Contains members that convert decimal numbers to others
bases, numbers in strings, strings in numbers and data from one type to another.
DateAndTime: Contains members that obtain the current time or date, they perform
date calculations, return a date or time, set the date or time or the
duration of a time process.
ErrObject: Contains information about runtime errors and
methods to generate or delete an error.
FileSystem: Contains members that perform file and directory operations
or folder and system.
Financial: Contains procedures used to perform financial calculations.
Globals: Contains information about the current scripting engine version.
Contains members that return, test or check
information such as matrix size, type names, and so on.
Interaction: Contains members interacting with objects, applications, and systems.
Strings: It contains members that perform string operations, such as changing
the string format, search for a string, get the length of a string, and so on
successively.
VBMath: Contains members that perform
mathematical operations.

Member function tables in


Visual Basic runtime
Conversion functions. Among these
conversion functions are found: Asc
AscW CBool (function), CByte (function),
CChar (función), CDate (función), CDbl
(function), CDec (function), Chr ChrW CInt
(function), CLng (function), CObj (function), CSByte (function), Function CShort CSng
(function), CStr (function), CType (function), CUInt (function), CULng (function)
CUShort (function), Format Hex Oct Str Val.
Mathematical Functions: The methods of the [Link] class provide
trigonometric operations, logarithmic functions, and other common mathematical functions.
String functions: there are various functions provided by Visual Basic for
search and manipulate strings.
Type conversion functions: These
functions are compiled in a way
aligned, which means that the code of
conversion is part of the code that
evaluate the expression. Sometimes, there is no
no call to a procedure for
make the conversion, which improves the
performance. Each function converts a
expression to the specific data type.
Function CType: Returns the result of
explicitly convert an expression to
a structure, class, data type
specified, object or interface.
BASIC CONTROLS OF Visual Basic (Microsoft)

The common Visual Basic controls are found within the executable file.
from Visual Basic. Intrinsic controls are always included in the box of
tools, not like ActiveX controls and insertable objects, that are
They can remove or add to the toolbox.

The following table lists the intrinsic controls of the board.


Visual Basic tools.

Icon Name of the Name of Description


control class
Box of CheckBox Present an option of type
verification True or False, or Yes or No.
You can activate multiple checkboxes
for verification of the same
time.
Picture ComboBox Combine a text box and
combined a list box. Allows that
the user writes a
selection or select one
CommandButton element of the list
Button dropdown.
command
Execute a command or a
action when a user
click on it.
Data Data Allows you to connect with a
existing database and
present information about her
in forms.
Frame d DirListBox It presents directories and paths of
list e access, and allows the
directories user selected them.
Frame DriveListBox Show disk drives
list e valid and allows that the
units user selected them.
Picture FileListBox Present a list of files
list e and allows the user to
files select.
Marco Frame Provide a container
visual and functional for others
controls.

Bars d HScrollBar y Let a user


scrollbar movement add bars of
not horizontal shift to cont roles
and vertical that they do not have them in form
automatic. (They are not the bars
of displacement
incorporated that are included
in many controls.)
Image Image It presents bitmaps,
icons or meta files of
Windows, JPEG files or
GIF, and acts like a button of
command when clicked
in him.
Label Label Present text with which the
user cannot interact
not modify.
Line Line Add a line segment
remaining on a form.
List Box Present a list of
elements among which the
user can choose.
Bibliography:
[Link]
[Link]
[Link]
matica/notes/visual_basic/Common_controls.pdf

You might also like