Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Beginning VB 6
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 2nd, 2004, 01:55 PM
Authorized User
 
Join Date: Dec 2003
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default accessing a two dimentional collection array

I was wondering how you use elements to access a multi-dimensional array. I'd like to search through my array, but I'm not sure of the syntax when dealing with a two-dimensional array. Below is a snipped of the code I'm attempting to write.


  Dim AcctTotals() As Variant

         ' now create the array to hold the totals
          ReDim AcctTotals(NumOfRows, 1)
                For Each element In AcctTotals
                    If element(what goes here ??) = Empty Then
                        element(and here) = AcctCode
                        Exit For
                    End If
                Next element





Similar Threads
Thread Thread Starter Forum Replies Last Post
2 dimentional array plomoscky Pro VB 6 1 January 14th, 2008 12:50 PM
Accessing elements of an Array object abdulqadirpk VB How-To 1 April 2nd, 2007 11:13 AM
What is difference between Array and a Collection ramk_1978 SQL Language 1 March 14th, 2005 04:36 AM
2 dimentional array ie_lml Pro VB 6 3 November 23rd, 2004 03:13 PM
Accessing an array in a class James Diamond Pro VB 6 1 May 7th, 2004 01:18 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.