visual basic Flashcards
Command button properties
Its properties are:
1. This specifies if the command button is 3D or flat in appearance. - appearance
2. This is a string that is displayed on the command button. - caption
3. A true or false value determines whether it is visible or not. - visible
4. This sets the font, font style, and font size.- font
5. The value true/false determines whether the command button responds to an event or not. - enabled
property window
The property window is the window that displays the properties of the currently selected form or object.
Event-driven programming
It is the programming language in which the user may click on a certain object randomly, so each object has to be programmed independently to be able to response to those actions or events.
three features of Visual basic
- It is a powerful Windows-based application.
- It provides an input box and output box as an interactive window with the user.
- It is able to build web-based applications.
event?
an action that can be performed on an object.
Procedure and its function?
the code that details the response for events. It is required for objects that the user can click on or choose in some way, such as command buttons and check boxes.
project and form?
project is the collection of forms in the VB program. whereas form is the area where you can create your app using different controls. Projects are saved with the.vbp extension, whereas forms are saved with the.frm extensions.
a subprogram
when we divide a large program into several smaller ones, these smaller programs are called subprograms.
the VB app development cycle.
develop an attractive user interface:
The user interface is what someone sees when your program is running. A VBI consists of forms and objects.
define properties
After the creation of forms and objects, define the properties of each form and object. An object’s properties determine the object’s name, color, size, location and appearance on the screen.
write the code
the final step invovles writing BASIC commands to make the program actually work. The aim of the VB is to tell the object on a form what to do when the user does something.
method
a block of code invoked to perform some action on a particular object.
property
The named attribute of an object
objects or controls
The elements of a form
GUI
stands for Graphical user interface, which is the user interface that we can see when our program is running in creating applications
control statement
The statement which allows repetition and omission of any statement. used to change the sequence of statement execution
loop
Repetition of any statement for a specific number of times
operators
symbols that compute inputs from the user and generate output
variable
a mermory space which is useed to data temporarily
constant
a memory space whose value does not change during the execution of the program
explain IF…THEN..ELSE statement
Select Case statement
Looping
→ used to check the condition and base on the result, the resulting action is followed.
→ This is used when there are many conditions. It takes two values from the user, compares them, and then gives the result.
→ vb allows a procedure to be repeated many times as long as a condition or a set of conditions is fulfilled. This is called looping
dat4e types in vb
numeric data type → consists of numbers which can be computed mathematically with various operators such as +,-,*,/ and so on
non-numeric date type → string (fixed length),
string(VARIABLE LENGTH)
DATE
BOOLEAN
object
variant (numeric)
variant (text)
The rules to be followed while naming attributes
→ must be less than 255 characters
→ No spacing is allowed between the characters of a variable name
→ must not begin with number
→ The period isn’t permitted.
Types of operators
→ arithmetic operators
→ logical operators
→ relation operators