Visual Basic 2015: John Nelson A. Picones
Visual Basic 2015: John Nelson A. Picones
VISUAL BASIC
VB Control Prefix
Check box chk
Combo box cbo
Button btn
Form frm
Group box grp
Label lbl
List box lst
Masked text box msk
Radio button rdb
Picture box pic
Tab control tab
Text box txt
Timer tmr
Variable, Constants,
and Data Types
- Is a memory location that
Variable computer uses to store
data
Begin with English Reserved words or code
Naming alphabet must not be used as
variable name
your
Variable
Identify the
following 7.The capacity of a variable name.
statement
8. Variable that are fixed and cannot be
altered by the program.
Dim Discount as
Single
Dim Ratio as
Double
Double is for fractional
numbers and Integer is for
whole numbers. String is
combination of alpha numeric
and symbols.
Data Types
There are some numbers that
has no value in nature. Meaning
no sense to be compared nor
use for computation. Therefore,
must use string.
Constant
Integer % Dim z%
Dim z%=3275