Sign In | Subscribe

Enter your Sign on user name and password.

Forgot password?
  • Follow us on:
Start learning today, and be successful in your academic & professional career. Start Today!
Loading video...
This is a quick preview of the lesson. For full access, please Log In or Sign up.
For more information, please see full course syllabus of Visual Basic
  • Discussion

  • Study Guides

  • Table of Contents

Start Learning Now

Our free lessons will get you started (Adobe Flash® required).
Get immediate access to our entire library.

Sign up for

Membership Overview

  • Unlimited access to our entire library of courses.
  • Search and jump to exactly what you want to learn.
  • *Ask questions and get answers from the community and our teachers!
  • Practice questions with step-by-step solutions.
  • Download lesson files for programming and software training practice.
  • Track your course viewing progress.
  • Download lecture slides for taking notes.
  • Learn at your own pace... anytime, anywhere!

Arrays, Stacks, Queues & Dictionaries

  • Arrays hold values of the same data type
  • Stacks are First In, Last Out (FILO)
  • Queues are First In, First Out (FIFO)
  • Dictionaries are used to hold a “keyed” set of values
  • The lower bound of arrays is always 0 (zero)
  • You can create multidimensional arrays, up to 63 dimensions
  • The index n into an array, denoted by Array(n), is called the “subscript”
  • LBound(array, dimension) is always 0 (zero)
  • UBound(array, dimension) tells how many elements are in that array’s dimension
  • ReDim and ReDim Preserve are used to change the size of an array
  • Preserve keeps the values in the array, otherwise the array defaults to all 0’s (zeros)
  • If the ReDim Preserve’d array is larger, the extra values are defaulted to 0 (zero)
  • If you assign a new variable to an existing array, it becomes a reference to the original array; any changes to either array are reflected in the other
  • Use .Clone to create a new array of values
  • Stacks use .Push and .Pop to work with values
  • Queues use .Enqueue and .Dequeue to work with values
  • .Clear removes all values from Stacks and Queues
  • .Peek looks at the next available item
  • .Count gives an item count
  • Dictionaries use a “key” value to access their data
  • Dictionaries use .Add and .Remove to work with values
  • .ContainsKey and .ContainsValue allow you to search a dictionary