Tutorials

Arrays




Sponsors
Offshore Software Development


User Options
How to Add Link
  Modify Link  
 
Login
Register
 Getting Rated
Link to Us
Feedback Us


Categories
    3DS MAX
    ASP
    C And C++
    ColdFusion
    Database
    Dreamweaver
    Flash
    HTML
    Java
    JavaScript
    Linux
    Maya
    MS Excel
    MS PowerPoint
    MS Word
    Paint Shop Pro
    Perl and CGI
    Photoshop
    PHP
    Premiere
    Python
    Visual Basic
    Web Hosting
    XML
 

 

Arrays
  

Home  » Visual Basic  

By definition, an array is a list of variables, all with the same data type and name. When we work with a single item, we only need to use one variable. However, if we have a list of items which are of similar type to deal with, we need to declare an array of variables instead of using a variable for each item. For example, if we need to enter one hundred names, instead of declaring one hundred different variables, we need to declare only one array. We differentiate each item in the array by using subscript, the index value of each item, for example name(1), name(2),name(3) .......etc. 13.2 Declaring Arrays We could use Public or Dim statement to declare an array just as the way we declare a single variable. The Public statement declares an array that can be used throughout an application while the Dim statement declare an array that could be used only in a local procedure. The general format to declare an array is as follow: Dim arrayName(subs) as dataType where subs indicates the last subscript in the array.

Hits: 491
Rate:   0.0(out of 5)  
Vote : 0   
Submit Date  : 2006-03-27
Submit By  : vbtutor
View Tutorial Arrays
 Add Review
 Report Error
Rating Graph

0.0%
0.0%
0.0%
0.0%
0.0%
 1  2  3  4  5 
Rate This :
More Tutorials by this user

Introduction to VB Function (Part 2)
 Introduction to VB Function (Part 2)
Working With Controls
 Working With Controls
Working With Variables
 Working With Variables
Looping
 Looping
Creating VB Function For MS Excel
 Creating VB Function For MS Excel
Writing the Codes
 Writing the Codes
Introduction
 Introduction
Creating an Advanced VB database application
 Creating an Advanced VB database application
Creating VB database applications using ADO control
 Creating VB database applications using ADO control
  
Home | Sitemap | Feedback | Privacy | Advertise with us
Best viewed in 800x600 resolution with Internet Explorer.
Site Developed and Hosted by EthicSolutions