Page 186 - Open Soource Technologies 304.indd
P. 186
Event Driven Programming
• ReDim is using for declaring or resizing the array size.
• The control array to be added must be an element of the existing array created at design
time with an index value of O.
7.5 Keywords
Dynamic array: The size of the array can be changed at the run time size changes during the
program execution.
Fixed-size array: The size of array always remains the same-size doesn’t change during the
program execution.
LBound and UBound functions: The LBound and UBound functions to retrieve the lower and
upper indices. If the array has two or more dimensions.
Multidimensional arrays: Multidimensional arrays is to represent tables of values consisting of
information arranged in rows and columns.
UDT structures: UDT structures can include both static and dynamic arrays.
1. Write a program using if-else statement.
2. How to define an array? Give example.
7.6 Self Assessment Questions
1. Which of the properties in a control’s list of properties is used to give the control a
meaningful name?
(a) Text (b) ContextMenu
(c) ControlName (d) Name
2. Select Case choices are determined by the value of an expression called a disselector.
(a) True (b) False
3. The size of an array can be changed at the run time—size changes during the program
execution.
(a) True (b) False
4. Tables or arrays that require—index to identify a particular element are called two
dimensional array.
(a) Three (b) One
(c) Two (d) None of these
5. Multidimensional arrays is to represent tables of values consisting of information arranged
in ………….
180 LOVELY PROFESSIONAL UNIVERSITY