1 / 9

Windows Database Applications

Windows Database Applications. CIS 341 Chapter 11. Objectives. Declare and reference collections Collection types Data Structures Object collection Items collection of a list box. Referencing Collection Items. DsStoreSales1.Tables(“Stores”) DsStoreSales1.Tables(0). Collection Class.

ermin
Télécharger la présentation

Windows Database Applications

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Windows Database Applications CIS 341 Chapter 11

  2. Objectives • Declare and reference collections • Collection types • Data Structures • Object collection • Items collection of a list box

  3. Referencing Collection Items DsStoreSales1.Tables(“Stores”) DsStoreSales1.Tables(0)

  4. Collection Class

  5. Stacks mstkList.Push(strItem) strItem = mstkList.Peek() mstkList.Pop()

  6. Queue mqueList.Enqueue(strItem) strItem = mqueList.Peek() mqueList.Dequeue()

  7. Hash Tables Strkey = strItem.GetHashCode.ToString() mhshTable.Add(strKey, strItem) strItem = lstLanguages.SelectedItem.ToString() strKey = strItem.GetHashCode mhshTable.Remove(strKey) For Each strItem In mhshTable.Values lstLanguages.Items.Add(strItem) Next

  8. Sorted List strKey = strItem.Substring(0,3) msrtList.Add(strKey, strItem) lstLanguages.Items.Clear() For each strItem in msrtList.Values lstLanguages.Items.Add(strItem) Next

  9. Collection of Objects Dim objStudent As New Student(txtName.Text, CDec(txtGPA.Text)) mcolStudents.Add(strKey, objStudent) objStudent = CType(mcolStudents.Item(strKey), Student)

More Related