You are here:   HomeVisual Basic

## In what situation would a loop be used in a procedure

by Dinesh Thakur Category: Lists Loops and Printing

A loop is series of one or more statements that executes more than one time. Loop statement repeats until a certain predefined condition is true. Two types of loop structures are available in VB. The do loop and for-next loop. The do loop constructs offers many variations and is used typically. If we do not know how many iterations will be performed.

## When and how the information is placed inside the listbox or combobox

by Dinesh Thakur Category: Lists Loops and Printing

We can use several methods to fill a listbox & combobox. If we know the list contents at design time and list never changes , we define list item in properties window.The list property holds the list of items for a listbox or combobox. To define the List property at design time, select the control and scroll the properties window to the List property.

## How do you control the horizontal spacing of printer output

by Dinesh Thakur Category: Lists Loops and Printing

A function that controls horizontal spacing on the line is the spc(space). The space function differs from the tab function. In that we specify the number of spaces on the line that we want to advance from the last item printed.

## How do the Left , Right and len function operate

by Dinesh Thakur Category: Lists Loops and Printing

VB provides string functions such as Left ,Right ,len.

## Define the following terms

by Dinesh Thakur Category: Array

## a) Arrays:

A variable array can contain a list of values, similar to list box or combo box. VB actually stores the list property of a list box or a combo box in an array.

## How Arrays are declared and initialized in Visual Basic

by Dinesh Thakur Category: Array

A standard structure for storing data in any programming language is an array. Whereas individual variables can hold single entities, such as a number, date, or string, arrays can hold sets of related data.

## Describe the logic of a table lookup

by Dinesh Thakur Category: Array

Consider the eight scout troops and their ticket sales. Now the groups are not numbered 1 to 8, but 101,103,110,115,121,123,130 and 145.

## Why would a list box control need both a ListBox property and an ItemData property

by Dinesh Thakur Category: Array

List Index property is used to determine the array subscript. List Index property holds the position or index of the selected item in the list. We could then use this index with one minor change to access the group total. List index property always begins with 0.

## Multi-Dimesional Array

by Dinesh Thakur Category: Array

You may need to use two subscripts to identify tabular data, where data are arranged in rows and columns. To define a two-dimentional array or table, the Dim statement specfies the number of rows and columns in the array. The row is horizontal and the column is vertical.

## Name some situation in which it is important to perform validation when working with subscripted variables

by Dinesh Thakur Category: Array

Sometimes, array are referred to as tables or subscripted variables, all referenced by the same name. When we use a control array, the individual controls are referenced as optCoffee(0) or optCoffee(1). The same notation is used with variable arrays. Therefore, in an array for storing names we may have strName(0), strName(1), strName(2) and so on.

Page 7 of 9

 Name E-mail

Dinesh Thakur holds an B.SC (Computer Science), MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular Computer Notes blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps. For any type of query or something that you think is missing, please feel free to contact us.

What's New and Popular

Search Content

Basic Courses