VB
VB
VB
Each action by the user causes an event to occur in project .this action performed is called event.
Logical operators are used to generally combine two or more checking conditions of statements.
There will be a situation when the user may not know the exact size of the array at design time.
Under such circumstances, a dynamic array can be initially declared and can add elements when
needed instead of declaring the size of the array at design time
Syntax : ReDim [Preserve] varname (Subscripts) [As type] [,varname(subscripts) [As type]]..
Function procedure are like sub-procedure. They can take arguments, perform a series of
statements. Unlike a sub-Procedure, a function-procedure can return a value to the calling
procedure.
DateTimePicker control is used To present date information where restricted or specially formatted
field is required such as date of birth field in online registration form. Here the users can select a
date with the click of a mouse instead of typing a date.
An application is referred to as Multiple Document Interface, or MDI, if the user open more than one
document in the application without closing it. To provide this functionality, the application provides
a parent frame that acts as the main frame of the computer program. Inside of this frame, the
application allows creating views that each uses its own frame, making it distinct from the other.
The Check Box control lets the user to select or deselect an option. When the Check Box is checked,
its value is set to 1 and When check Box is unchecked, the value is set to 0.
Open Database Connectivity (ODBC) is a standard developed by Microsoft in order to simplify the
development of applications that need to be independent of database platforms.
10. What are Help files?
Help system (help files) is a documentation component of a software program that explains the
features of the programs. It helps the user understand its capabiliti
MFC is short for Microsoft Foundation Classes. It is Microsoft's Win 32 application framework for
writing Microsoft C/C++ and Visual C++ applications and is made up of a collection of classes written
in C++.
A dynamic-link library (DLL) is an executable file that acts as a shared library of functions linking
provides a way for a process to call a function that is not part of its executable code.
5 marks
13. a) Explain different Do Loops used in VB with syntax.
Do While.. Loop Statements :A Do While Loop is used to execute statements as long as the
condition is true.
Syntax:
Do While <condition>
Statements
Loop
Do Loop... While Statements: A De Loop While Statement first executes the statements and
then tests the condition after each execution.
Syntax:
Do
statements
Loop While <condition>
Do Until ...Loop Statements:Do Until...Loop Statement are similar to Do While loop but the
Keyword UNTIL (means as long as) the comparison test is NOT TRUE, the loop repeats. As
soon as it becomes TRUE, the loop terminates
Syntax:
Do Until <condition>
Statements
Loop
Do loop until:The Do.Loop Until structure executes the statements until the condition is
satisfied. It is an infinite loop if the test fails and to get released from this infinite loop only
by pressing CTRL+ BREAK key.
Syntax:
Do
statements
Loop Until <condition>
14. a) Explain combobox control and how to add items to combobox during design time
and run time.
Combo boxes are so-named because they "combine" the features found in both text boxes
and list boxes. This enables the user to select either by typing text into the Combo Box or by
selecting an item from the list. Combo boxes are also commonly referred to as "drop-down
boxes" or "drop-down lists"
Addings items
▸ At Design Time: To add items to a list at design time, click on List property in the property
box. Then add the items by Pressing CTRL+ENTER and end by pressing ENTER button.
At Run Time: The AddItem method is used to add items to a list at run time.
Syntax: Object.AddItem <item, Index>
Where
Item: A string that represents the text to add to the list
Index: The Index argument is an integer value assigned to data items.