Computer Reviewer 3q
Computer Reviewer 3q
Variables
A. Creating VB Application Using Button, –are the memory location(address) that holds
Textbox and Label data that can be changed during project
execution.
-The function of Button is to carry out a
command or action (event) as the user clicks Constants
it,while the Textbox provides the area for
-are the memory location that holds data that
input and output display in text format. This
cannot be changed during the execution of
control is used to extract simple responses
from the user or to invoke special functions of
the form. A Label control is used to display
descriptive text for the form in control. It does Data Types
not participate in user input or keyboard or –indicates what particular type of data or
mouse events. information will be stored in the allocated
memory space
-This control is used in an application when –a number with fractional part or decimal
the user wants to select current, previous and point that holds data values of 1.8 times 10
future date. to the power of 308th with 8 bytes storage
size.
6.String
Lesson 4: VARIABLES AND CONSTANT
DECLARATION –a sequence of an alphanumeric data that are
enclosed with double quotation marks
7.Boolean
10.Char
Note:
Dim
➢The integer division (\) is used to divide
- Dim statement to determine the variable's
one integer by another integer, and give an
data type and other information, such as
integer result and truncating or dropping any
what code can access the variable.
remainder.
Example: TotalSales=160
TotalSales=TotalSalesInteger\60 C>B=T
Result: 2 B>A= T
Result: 30 Or (II)
Symbols:
Not (!)
> (GREATER THAN)
-Reverses the condition
< (LESS THAN)
• !T = F
= (EQUALS SIGN)
• !F = T
<> (NOT EQUAL TO)
T && I F II T = T
BOOLEAN RESULTS:
T II T && F II T = T
EXAMPLES: Given: A = 2, B = 3, C = 4
!F II !T II F && (T II F) = T
A>B=F
!(T II F && ! II F && F II F) = T
C<A=F
F && (T II F II (T II F && T II F) = F
A=C=F