SlideShare a Scribd company logo
REGULAR VARIABLES For each item of information that we wish to store we need to declare a seperate variable This can become very confusing if we have multiple items of the same type to store
To store 3 individual names we need to declare 3 seperate variables strName1 strName2 strName3
New method of storing information We can use a special type of variable  called an "Array" to store multiple items in a single variable We declare an Array very similar to a variable Dim strName (5)  as String The   (5)  represents the number of items  that we wish to store in our array
strName(5)  would look like this We refer to each individual cell in the array by its "INDEX" number An array starts with an index of 0
To place information into the first cell of the array we would do it as follows strName(0) = "Casey" To place information into the forth cell we would do the following strName(3) = "Roger"
Casey Roger To retrieve information from an array  and display it to a label we would do the following lblOutput.Caption = strName(  ) To display Casey we would write lblOutput.Caption = strName(0) To display Roger we would write lblOutput.Caption = strName(3)

More Related Content

PPT
Laws of exponents
PPTX
Remove duplicates
PPTX
Stack & Queue using Linked List in Data Structure
PPTX
Implementation of queue using singly and doubly linked list.
PPTX
Different cultures
PPT
History Of The Interent
PPT
Answer Key
PPT
Relative Sentences
Laws of exponents
Remove duplicates
Stack & Queue using Linked List in Data Structure
Implementation of queue using singly and doubly linked list.
Different cultures
History Of The Interent
Answer Key
Relative Sentences

Viewers also liked (15)

PPT
Working with External CSS
PPT
Embedded vs External CSS
PPT
Nested Tables
PPT
Embedded Stylesheets
PDF
Milieu
PPT
Embedded Stylesheet
PPT
The past perfect
PDF
El maltrato entre escolares
PPT
Tables Oct29
PPT
Nested Tables2
PPTX
Speedofculture hamburg
PPT
Working with External CSS
PPT
The Symbols Of Ireland
PPTX
DDB Being Agile
PPT
Kindergardners
Working with External CSS
Embedded vs External CSS
Nested Tables
Embedded Stylesheets
Milieu
Embedded Stylesheet
The past perfect
El maltrato entre escolares
Tables Oct29
Nested Tables2
Speedofculture hamburg
Working with External CSS
The Symbols Of Ireland
DDB Being Agile
Kindergardners
Ad

Similar to Working With Arrays (14)

PDF
MA3696 Lecture 5
PPT
Chapter 08
PPTX
Array and functions
PPTX
Unit 5: Variables
PDF
Ma3696 Lecture 3
DOCX
Arrays in VbScript
PPT
Arrays
PDF
MA3696 Lecture 6
PPTX
Advanced VB: Review of the basics
PPTX
Advanced VB: Review of the basics
PPTX
PPT
Ch (2)(presentation) its about visual programming
PPTX
Mod 12
MA3696 Lecture 5
Chapter 08
Array and functions
Unit 5: Variables
Ma3696 Lecture 3
Arrays in VbScript
Arrays
MA3696 Lecture 6
Advanced VB: Review of the basics
Advanced VB: Review of the basics
Ch (2)(presentation) its about visual programming
Mod 12
Ad

More from davereece (6)

PPT
external stylesheet
PPT
Counting with a For Loop
PPT
Table Oct26
PPT
Image Map Demo Oct25
PPT
Image Map Demo Oct25
PPT
Image Map Demo Oct25
external stylesheet
Counting with a For Loop
Table Oct26
Image Map Demo Oct25
Image Map Demo Oct25
Image Map Demo Oct25

Recently uploaded (20)

PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
KodekX | Application Modernization Development
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPT
Teaching material agriculture food technology
PPTX
Cloud computing and distributed systems.
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
Spectroscopy.pptx food analysis technology
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Electronic commerce courselecture one. Pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Machine learning based COVID-19 study performance prediction
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
Encapsulation_ Review paper, used for researhc scholars
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
KodekX | Application Modernization Development
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Teaching material agriculture food technology
Cloud computing and distributed systems.
MIND Revenue Release Quarter 2 2025 Press Release
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Spectroscopy.pptx food analysis technology
Agricultural_Statistics_at_a_Glance_2022_0.pdf
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Electronic commerce courselecture one. Pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Dropbox Q2 2025 Financial Results & Investor Presentation
Machine learning based COVID-19 study performance prediction
Advanced methodologies resolving dimensionality complications for autism neur...
Reach Out and Touch Someone: Haptics and Empathic Computing

Working With Arrays

  • 1. REGULAR VARIABLES For each item of information that we wish to store we need to declare a seperate variable This can become very confusing if we have multiple items of the same type to store
  • 2. To store 3 individual names we need to declare 3 seperate variables strName1 strName2 strName3
  • 3. New method of storing information We can use a special type of variable called an "Array" to store multiple items in a single variable We declare an Array very similar to a variable Dim strName (5) as String The (5) represents the number of items that we wish to store in our array
  • 4. strName(5) would look like this We refer to each individual cell in the array by its "INDEX" number An array starts with an index of 0
  • 5. To place information into the first cell of the array we would do it as follows strName(0) = "Casey" To place information into the forth cell we would do the following strName(3) = "Roger"
  • 6. Casey Roger To retrieve information from an array and display it to a label we would do the following lblOutput.Caption = strName( ) To display Casey we would write lblOutput.Caption = strName(0) To display Roger we would write lblOutput.Caption = strName(3)