CS Flashcards
what is a form
container for all the controls that make up the user interface.
how to open the tool box
View > Toolbox from the menu bar, or press Ctrl+Alt+X.
how are controls used
They are used later by the end-users in order to interact with the project/program created.
what is the tool box
Displays all the Controls that you can add to a Form.
The propeties window
Display the properties for either Form or Controls.
Coding Window
All the codes are being typed here
how to execute your coding
To execute or see the result of your coding, click Debug > Start Debugging. Alternatively, pressing F5 on the keyboard will also give the same result.
If the programmer did not declare the variables,
the program would not understand the purpose of the variables created, and it will show as an error.
Variables are declared using the
Dim Code
The format for declaring variables is
Dim Variable As Data Type
Variable means
an area allocated by the computer memory to hold data
The following are the rules when naming a variable in VB22:
A variable name must be less than 255 characters.
No spacing is allowed in naming a variable.
A variable must NOT begin with a number.
Cannot use reserved words as a variable
Cannot contain any special symbols
Numeric Data Types are data that
Non-numeric Data Types are data that
can be computed mathematically.
cannot be manipulated
Name all types of numeric data
Byte
Integer or Long
Single or Double
Decimal
Currency
Difference between single or double and decimal
single and double can handle less decimal points compared to decimal, decimal can handle 28 decimal points