Results 1 to 4 of 4

Thread: Arrays in Visual Basic 6.0

  1. #1
    Join Date
    Dec 2010
    Posts
    11

    Arrays in Visual Basic 6.0

    Hey Guys, I wanted to know Arrays in visual basic 6.0. I am totally blank in this topic and next week I am having my semesters. I am totally worried as I am not able to understand this topic. I tried to study this topic from various books of visual basic 6.0 but still I was not able to understand the concept. If anyone having any information or knowledge about these terms in Visual basic then please let me know as soon as possible.

  2. #2
    Join Date
    Apr 2009
    Posts
    488

    Re: Arrays in Visual Basic 6.0

    If you want to declare an array in Visual basic 6.0 then an array is declared using the Dim statement. SyntaxDim ArrayName ([LowerLimit To] UpperLimit, [LowerLimit To] UpperLimit) [As Datatype] ArrayName is any valid identifier. LowerLimit and UpperLimitt are numeric values. Fractional values will be rounded. UpperLimit should always be greater than or equal to 0. If Option Base 1 is not specified in the General Declaration Section, LowerLimit defaults to zero. Otherwise it defaults to 1.

  3. #3
    Join Date
    May 2009
    Posts
    529

    Re: Arrays in Visual Basic 6.0

    ExamplesDim strName(2, 3)As String
    Dim strName(0 To 2, 0 To 3) As String Both the above statements declare arrays of 12 elements, with three rows and four columns. Accessing Elements Individual elements in an array can be accessed by specifying their subscripts in round brackets after the array name. If a non-existing subscript is specified, an error is generated.

  4. #4
    Join Date
    May 2009
    Posts
    527

    Re: Arrays in Visual Basic 6.0

    General FormArrayName (Subscript1, Subscript2) Subscript1 and Subscript2 can be constants, variables or and expressions. If they result to a fractional value, theyare rounded. ExamplesstrName(1, 2) = "Shivam" Me.Print strName(intRow, intCol) Initialising using For Each … Next loop Refer to Single Dimensional Arrays.

Similar Threads

  1. Sample of Visual Basic macros for working with arrays in Excel
    By Silent~Kid in forum Windows Software
    Replies: 5
    Last Post: 12-03-2010, 03:43 AM
  2. How to use the Arrays in Visual Basic?
    By The Recruiter in forum Software Development
    Replies: 4
    Last Post: 21-01-2010, 08:13 PM
  3. what are Visual Basic IDE?
    By Naresh Modi in forum Software Development
    Replies: 2
    Last Post: 06-03-2009, 09:49 AM
  4. Is GUI same like Visual Basic ?
    By Caesar in forum Software Development
    Replies: 2
    Last Post: 02-03-2009, 01:32 PM
  5. Visual Basic 2005 or Visual Basic 6
    By Aasha in forum Software Development
    Replies: 5
    Last Post: 15-01-2009, 06:56 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,612,926.20919 seconds with 16 queries