Chapter 5 Summary - Chapter 5 Summary Chapter 5: Lists and...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Chapter 5 Summary Chapter 5: Lists and Loops 5.1 Input boxes Concept: Input boxes provide a way to gather input without using a text box on the form. The format for an input box is: inputbox{prompt, title, default, xpos, ypos) The following would assign the input to the string Age strAge = Inputbox(“Enter your name.”, “Age”, “0”) Once the user completed the input, the value is assigned to strAge. Should a user select okay with out entering anything, any default value would be assigned to strAge 5.2 List boxes Concept: Listboxes display a list and the user is permitted to select from the list. Values in the list box are stored in a property named Items. The number of items in the list can be determined by using the Items.count property. With no items in the list, the property is equal to zero. Each item in the list is assigned a value, called an index 0 is the first value, followed by 1, 2, etc. the last value is n-1, where n is the total number of items in the list. To access items, you must reference the index.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/05/2011 for the course BUS 92 taught by Professor Staff during the Spring '11 term at San Jose State University .

Page1 / 5

Chapter 5 Summary - Chapter 5 Summary Chapter 5: Lists and...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online