PC Review


Reply
Thread Tools Rate Thread

array function for multidimensional arrays

 
 
=?Utf-8?B?U3RlZmk=?=
Guest
Posts: n/a
 
      2nd Mar 2007
Hi All,

rbetuk = Array("A", "B", "C")

is a very convenient way of creating arrays, but it creates only a 3x1
dimension array. Can I declare a 3x2 or 3x3 dimension array in this way?


Thanks,
Stefi


 
Reply With Quote
 
 
 
 
=?Utf-8?B?SmF5?=
Guest
Posts: n/a
 
      2nd Mar 2007
Try using arrays themselves as arguments:

rbetuk = Array(Array("A", "B", "C"), Array("D", "E", "F"), Array("G", "H",
"I"))

You can test this by reading the array 'in' and 'out' with the following
test code:

Sub stefi()
rbetuk = Array(Array("A", "B", "C"), _
Array("D", "E", "F"), _
Array("G", "H", "I"))
For Each itm In rbetuk
For Each itm2 In itm
MsgBox itm2
Next 'itm2
Next 'itm
End Sub

--
Jay


"Stefi" wrote:

> Hi All,
>
> rbetuk = Array("A", "B", "C")
>
> is a very convenient way of creating arrays, but it creates only a 3x1
> dimension array. Can I declare a 3x2 or 3x3 dimension array in this way?
>
>
> Thanks,
> Stefi
>
>

 
Reply With Quote
 
=?Utf-8?B?U3RlZmk=?=
Guest
Posts: n/a
 
      2nd Mar 2007
Nice trick, thanks Jay!
By the way, another question: how can I find out the order number of an
array element within an array? E.g.

rbetuk = Array("A", "B", "C")

I'd like to know that content of variable, say

XVAR="B"

is the 1st, 2nd, or 3rd element of the array. Something like

ORDERNO = Function???(rbetuk,XVAR)

This Function??? function should return 2.

Stefi


„Jay” ezt *rta:

> Try using arrays themselves as arguments:
>
> rbetuk = Array(Array("A", "B", "C"), Array("D", "E", "F"), Array("G", "H",
> "I"))
>
> You can test this by reading the array 'in' and 'out' with the following
> test code:
>
> Sub stefi()
> rbetuk = Array(Array("A", "B", "C"), _
> Array("D", "E", "F"), _
> Array("G", "H", "I"))
> For Each itm In rbetuk
> For Each itm2 In itm
> MsgBox itm2
> Next 'itm2
> Next 'itm
> End Sub
>
> --
> Jay
>
>
> "Stefi" wrote:
>
> > Hi All,
> >
> > rbetuk = Array("A", "B", "C")
> >
> > is a very convenient way of creating arrays, but it creates only a 3x1
> > dimension array. Can I declare a 3x2 or 3x3 dimension array in this way?
> >
> >
> > Thanks,
> > Stefi
> >
> >

 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      2nd Mar 2007
That doesn't actually create a 2d array, rather it creates an array of
arrays. Instead of indexing like rbetuk(1,2) you have to use rbetuk(1)(2),
not a great problem, but not as we are taught to index into arrays (more
like Javascript multi-dimensional arrays).

This gives standard 2d arrays, bujt is limited in how big the array can be

rdetuk = ActiveSheet.Evaluate("{""A"",""B"",""C"";""D"", ""E"", ""F"";""G"",
""H"", ""I""}")

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Jay" <(E-Mail Removed)> wrote in message
news:2DA08C28-BF46-47E5-9804-(E-Mail Removed)...
> Try using arrays themselves as arguments:
>
> rbetuk = Array(Array("A", "B", "C"), Array("D", "E", "F"), Array("G", "H",
> "I"))
>
> You can test this by reading the array 'in' and 'out' with the following
> test code:
>
> Sub stefi()
> rbetuk = Array(Array("A", "B", "C"), _
> Array("D", "E", "F"), _
> Array("G", "H", "I"))
> For Each itm In rbetuk
> For Each itm2 In itm
> MsgBox itm2
> Next 'itm2
> Next 'itm
> End Sub
>
> --
> Jay
>
>
> "Stefi" wrote:
>
>> Hi All,
>>
>> rbetuk = Array("A", "B", "C")
>>
>> is a very convenient way of creating arrays, but it creates only a 3x1
>> dimension array. Can I declare a 3x2 or 3x3 dimension array in this way?
>>
>>
>> Thanks,
>> Stefi
>>
>>



 
Reply With Quote
 
=?Utf-8?B?U3RlZmk=?=
Guest
Posts: n/a
 
      2nd Mar 2007
I found out that Worksheetfunction.Match does the trick!
Stefi


„Stefi” ezt *rta:

> Nice trick, thanks Jay!
> By the way, another question: how can I find out the order number of an
> array element within an array? E.g.
>
> rbetuk = Array("A", "B", "C")
>
> I'd like to know that content of variable, say
>
> XVAR="B"
>
> is the 1st, 2nd, or 3rd element of the array. Something like
>
> ORDERNO = Function???(rbetuk,XVAR)
>
> This Function??? function should return 2.
>
> Stefi
>
>
> „Jay” ezt *rta:
>
> > Try using arrays themselves as arguments:
> >
> > rbetuk = Array(Array("A", "B", "C"), Array("D", "E", "F"), Array("G", "H",
> > "I"))
> >
> > You can test this by reading the array 'in' and 'out' with the following
> > test code:
> >
> > Sub stefi()
> > rbetuk = Array(Array("A", "B", "C"), _
> > Array("D", "E", "F"), _
> > Array("G", "H", "I"))
> > For Each itm In rbetuk
> > For Each itm2 In itm
> > MsgBox itm2
> > Next 'itm2
> > Next 'itm
> > End Sub
> >
> > --
> > Jay
> >
> >
> > "Stefi" wrote:
> >
> > > Hi All,
> > >
> > > rbetuk = Array("A", "B", "C")
> > >
> > > is a very convenient way of creating arrays, but it creates only a 3x1
> > > dimension array. Can I declare a 3x2 or 3x3 dimension array in this way?
> > >
> > >
> > > Thanks,
> > > Stefi
> > >
> > >

 
Reply With Quote
 
=?Utf-8?B?Q3VydA==?=
Guest
Posts: n/a
 
      2nd Mar 2007
I have never built an array. If i understand from your post the "A"
represents column. If ciorrect how do you get to the row. What i am after is
to copy 7 cells in a row to a different wksh this row changes with each entry
and would be triggered by entry in column 'J'. Also "J" value must be reduced
by 10.00 "J" is formated to currency wksh's to copy to have first row frozen
for labeld & scrolling. Would need next row or insert a row on sheets copied
to. Have this code to start with

Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal target As
Range)
Select Case Sh.Name
Case "Data", "Motorcycle", "Indian", "Native"
'1=data 6=Motorcycle 7=Indian 8=Native nbrs are for sheets
If target.Column = 10 And target.Value > 10 Then _
Call CopyStuff(target)
End Select
End Sub

want to copy Data cells in row colmn E F G H I J-10.00 K
to donors wksh to next open row in wksh
If we can make it happen once I feel i can repeat for other sheets.
will need to modify for < 10.00 to different sheet My challenge is to modify
for needed change.
Old dog new tricks
Thanks in advance
..
"Bob Phillips" wrote:

> That doesn't actually create a 2d array, rather it creates an array of
> arrays. Instead of indexing like rbetuk(1,2) you have to use rbetuk(1)(2),
> not a great problem, but not as we are taught to index into arrays (more
> like Javascript multi-dimensional arrays).
>
> This gives standard 2d arrays, bujt is limited in how big the array can be
>
> rdetuk = ActiveSheet.Evaluate("{""A"",""B"",""C"";""D"", ""E"", ""F"";""G"",
> ""H"", ""I""}")
>
> --
> ---
> HTH
>
> Bob
>
> (there's no email, no snail mail, but somewhere should be gmail in my addy)
>
>
>
> "Jay" <(E-Mail Removed)> wrote in message
> news:2DA08C28-BF46-47E5-9804-(E-Mail Removed)...
> > Try using arrays themselves as arguments:
> >
> > rbetuk = Array(Array("A", "B", "C"), Array("D", "E", "F"), Array("G", "H",
> > "I"))
> >
> > You can test this by reading the array 'in' and 'out' with the following
> > test code:
> >
> > Sub stefi()
> > rbetuk = Array(Array("A", "B", "C"), _
> > Array("D", "E", "F"), _
> > Array("G", "H", "I"))
> > For Each itm In rbetuk
> > For Each itm2 In itm
> > MsgBox itm2
> > Next 'itm2
> > Next 'itm
> > End Sub
> >
> > --
> > Jay
> >
> >
> > "Stefi" wrote:
> >
> >> Hi All,
> >>
> >> rbetuk = Array("A", "B", "C")
> >>
> >> is a very convenient way of creating arrays, but it creates only a 3x1
> >> dimension array. Can I declare a 3x2 or 3x3 dimension array in this way?
> >>
> >>
> >> Thanks,
> >> Stefi
> >>
> >>

>
>
>

 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      2nd Mar 2007
You don't need an array for that, just copy E:K over, and reduce J by 10
afterwards

Sh.Range("E" & Target.Row).Resize(,7).Copy wkSh.Range("A" & iNextFreeRow)
wkSh.Range("F" & iNextFreeRow).Value = wkSh.Range("F" &
NextFreeRow).Value - 10

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Curt" <(E-Mail Removed)> wrote in message
news:2E8EC5BB-944E-44E4-8DD9-(E-Mail Removed)...
>I have never built an array. If i understand from your post the "A"
> represents column. If ciorrect how do you get to the row. What i am after
> is
> to copy 7 cells in a row to a different wksh this row changes with each
> entry
> and would be triggered by entry in column 'J'. Also "J" value must be
> reduced
> by 10.00 "J" is formated to currency wksh's to copy to have first row
> frozen
> for labeld & scrolling. Would need next row or insert a row on sheets
> copied
> to. Have this code to start with
>
> Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal target As
> Range)
> Select Case Sh.Name
> Case "Data", "Motorcycle", "Indian", "Native"
> '1=data 6=Motorcycle 7=Indian 8=Native nbrs are for sheets
> If target.Column = 10 And target.Value > 10 Then _
> Call CopyStuff(target)
> End Select
> End Sub
>
> want to copy Data cells in row colmn E F G H I J-10.00 K
> to donors wksh to next open row in wksh
> If we can make it happen once I feel i can repeat for other sheets.
> will need to modify for < 10.00 to different sheet My challenge is to
> modify
> for needed change.
> Old dog new tricks
> Thanks in advance
> .
> "Bob Phillips" wrote:
>
>> That doesn't actually create a 2d array, rather it creates an array of
>> arrays. Instead of indexing like rbetuk(1,2) you have to use
>> rbetuk(1)(2),
>> not a great problem, but not as we are taught to index into arrays (more
>> like Javascript multi-dimensional arrays).
>>
>> This gives standard 2d arrays, bujt is limited in how big the array can
>> be
>>
>> rdetuk = ActiveSheet.Evaluate("{""A"",""B"",""C"";""D"", ""E"",
>> ""F"";""G"",
>> ""H"", ""I""}")
>>
>> --
>> ---
>> HTH
>>
>> Bob
>>
>> (there's no email, no snail mail, but somewhere should be gmail in my
>> addy)
>>
>>
>>
>> "Jay" <(E-Mail Removed)> wrote in message
>> news:2DA08C28-BF46-47E5-9804-(E-Mail Removed)...
>> > Try using arrays themselves as arguments:
>> >
>> > rbetuk = Array(Array("A", "B", "C"), Array("D", "E", "F"), Array("G",
>> > "H",
>> > "I"))
>> >
>> > You can test this by reading the array 'in' and 'out' with the
>> > following
>> > test code:
>> >
>> > Sub stefi()
>> > rbetuk = Array(Array("A", "B", "C"), _
>> > Array("D", "E", "F"), _
>> > Array("G", "H", "I"))
>> > For Each itm In rbetuk
>> > For Each itm2 In itm
>> > MsgBox itm2
>> > Next 'itm2
>> > Next 'itm
>> > End Sub
>> >
>> > --
>> > Jay
>> >
>> >
>> > "Stefi" wrote:
>> >
>> >> Hi All,
>> >>
>> >> rbetuk = Array("A", "B", "C")
>> >>
>> >> is a very convenient way of creating arrays, but it creates only a 3x1
>> >> dimension array. Can I declare a 3x2 or 3x3 dimension array in this
>> >> way?
>> >>
>> >>
>> >> Thanks,
>> >> Stefi
>> >>
>> >>

>>
>>
>>



 
Reply With Quote
 
=?Utf-8?B?Q3VydA==?=
Guest
Posts: n/a
 
      2nd Mar 2007
Thank You for explanitation you make it simple
Thanks Again

"Bob Phillips" wrote:

> You don't need an array for that, just copy E:K over, and reduce J by 10
> afterwards
>
> Sh.Range("E" & Target.Row).Resize(,7).Copy wkSh.Range("A" & iNextFreeRow)
> wkSh.Range("F" & iNextFreeRow).Value = wkSh.Range("F" &
> NextFreeRow).Value - 10
>
> --
> ---
> HTH
>
> Bob
>
> (there's no email, no snail mail, but somewhere should be gmail in my addy)
>
>
>
> "Curt" <(E-Mail Removed)> wrote in message
> news:2E8EC5BB-944E-44E4-8DD9-(E-Mail Removed)...
> >I have never built an array. If i understand from your post the "A"
> > represents column. If ciorrect how do you get to the row. What i am after
> > is
> > to copy 7 cells in a row to a different wksh this row changes with each
> > entry
> > and would be triggered by entry in column 'J'. Also "J" value must be
> > reduced
> > by 10.00 "J" is formated to currency wksh's to copy to have first row
> > frozen
> > for labeld & scrolling. Would need next row or insert a row on sheets
> > copied
> > to. Have this code to start with
> >
> > Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal target As
> > Range)
> > Select Case Sh.Name
> > Case "Data", "Motorcycle", "Indian", "Native"
> > '1=data 6=Motorcycle 7=Indian 8=Native nbrs are for sheets
> > If target.Column = 10 And target.Value > 10 Then _
> > Call CopyStuff(target)
> > End Select
> > End Sub
> >
> > want to copy Data cells in row colmn E F G H I J-10.00 K
> > to donors wksh to next open row in wksh
> > If we can make it happen once I feel i can repeat for other sheets.
> > will need to modify for < 10.00 to different sheet My challenge is to
> > modify
> > for needed change.
> > Old dog new tricks
> > Thanks in advance
> > .
> > "Bob Phillips" wrote:
> >
> >> That doesn't actually create a 2d array, rather it creates an array of
> >> arrays. Instead of indexing like rbetuk(1,2) you have to use
> >> rbetuk(1)(2),
> >> not a great problem, but not as we are taught to index into arrays (more
> >> like Javascript multi-dimensional arrays).
> >>
> >> This gives standard 2d arrays, bujt is limited in how big the array can
> >> be
> >>
> >> rdetuk = ActiveSheet.Evaluate("{""A"",""B"",""C"";""D"", ""E"",
> >> ""F"";""G"",
> >> ""H"", ""I""}")
> >>
> >> --
> >> ---
> >> HTH
> >>
> >> Bob
> >>
> >> (there's no email, no snail mail, but somewhere should be gmail in my
> >> addy)
> >>
> >>
> >>
> >> "Jay" <(E-Mail Removed)> wrote in message
> >> news:2DA08C28-BF46-47E5-9804-(E-Mail Removed)...
> >> > Try using arrays themselves as arguments:
> >> >
> >> > rbetuk = Array(Array("A", "B", "C"), Array("D", "E", "F"), Array("G",
> >> > "H",
> >> > "I"))
> >> >
> >> > You can test this by reading the array 'in' and 'out' with the
> >> > following
> >> > test code:
> >> >
> >> > Sub stefi()
> >> > rbetuk = Array(Array("A", "B", "C"), _
> >> > Array("D", "E", "F"), _
> >> > Array("G", "H", "I"))
> >> > For Each itm In rbetuk
> >> > For Each itm2 In itm
> >> > MsgBox itm2
> >> > Next 'itm2
> >> > Next 'itm
> >> > End Sub
> >> >
> >> > --
> >> > Jay
> >> >
> >> >
> >> > "Stefi" wrote:
> >> >
> >> >> Hi All,
> >> >>
> >> >> rbetuk = Array("A", "B", "C")
> >> >>
> >> >> is a very convenient way of creating arrays, but it creates only a 3x1
> >> >> dimension array. Can I declare a 3x2 or 3x3 dimension array in this
> >> >> way?
> >> >>
> >> >>
> >> >> Thanks,
> >> >> Stefi
> >> >>
> >> >>
> >>
> >>
> >>

>
>
>

 
Reply With Quote
 
=?Utf-8?B?Q3VydA==?=
Guest
Posts: n/a
 
      2nd Mar 2007
pasted in code iNextFreeRow error' invalid or unqualified reference' can you
tell me what I lack knowledge of

"Bob Phillips" wrote:

> You don't need an array for that, just copy E:K over, and reduce J by 10
> afterwards
>
> Sh.Range("E" & Target.Row).Resize(,7).Copy wkSh.Range("A" & iNextFreeRow)
> wkSh.Range("F" & iNextFreeRow).Value = wkSh.Range("F" &
> NextFreeRow).Value - 10
>
> --
> ---
> HTH
>
> Bob
>
> (there's no email, no snail mail, but somewhere should be gmail in my addy)
>
>
>
> "Curt" <(E-Mail Removed)> wrote in message
> news:2E8EC5BB-944E-44E4-8DD9-(E-Mail Removed)...
> >I have never built an array. If i understand from your post the "A"
> > represents column. If ciorrect how do you get to the row. What i am after
> > is
> > to copy 7 cells in a row to a different wksh this row changes with each
> > entry
> > and would be triggered by entry in column 'J'. Also "J" value must be
> > reduced
> > by 10.00 "J" is formated to currency wksh's to copy to have first row
> > frozen
> > for labeld & scrolling. Would need next row or insert a row on sheets
> > copied
> > to. Have this code to start with
> >
> > Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal target As
> > Range)
> > Select Case Sh.Name
> > Case "Data", "Motorcycle", "Indian", "Native"
> > '1=data 6=Motorcycle 7=Indian 8=Native nbrs are for sheets
> > If target.Column = 10 And target.Value > 10 Then _
> > Call CopyStuff(target)
> > End Select
> > End Sub
> >
> > want to copy Data cells in row colmn E F G H I J-10.00 K
> > to donors wksh to next open row in wksh
> > If we can make it happen once I feel i can repeat for other sheets.
> > will need to modify for < 10.00 to different sheet My challenge is to
> > modify
> > for needed change.
> > Old dog new tricks
> > Thanks in advance
> > .
> > "Bob Phillips" wrote:
> >
> >> That doesn't actually create a 2d array, rather it creates an array of
> >> arrays. Instead of indexing like rbetuk(1,2) you have to use
> >> rbetuk(1)(2),
> >> not a great problem, but not as we are taught to index into arrays (more
> >> like Javascript multi-dimensional arrays).
> >>
> >> This gives standard 2d arrays, bujt is limited in how big the array can
> >> be
> >>
> >> rdetuk = ActiveSheet.Evaluate("{""A"",""B"",""C"";""D"", ""E"",
> >> ""F"";""G"",
> >> ""H"", ""I""}")
> >>
> >> --
> >> ---
> >> HTH
> >>
> >> Bob
> >>
> >> (there's no email, no snail mail, but somewhere should be gmail in my
> >> addy)
> >>
> >>
> >>
> >> "Jay" <(E-Mail Removed)> wrote in message
> >> news:2DA08C28-BF46-47E5-9804-(E-Mail Removed)...
> >> > Try using arrays themselves as arguments:
> >> >
> >> > rbetuk = Array(Array("A", "B", "C"), Array("D", "E", "F"), Array("G",
> >> > "H",
> >> > "I"))
> >> >
> >> > You can test this by reading the array 'in' and 'out' with the
> >> > following
> >> > test code:
> >> >
> >> > Sub stefi()
> >> > rbetuk = Array(Array("A", "B", "C"), _
> >> > Array("D", "E", "F"), _
> >> > Array("G", "H", "I"))
> >> > For Each itm In rbetuk
> >> > For Each itm2 In itm
> >> > MsgBox itm2
> >> > Next 'itm2
> >> > Next 'itm
> >> > End Sub
> >> >
> >> > --
> >> > Jay
> >> >
> >> >
> >> > "Stefi" wrote:
> >> >
> >> >> Hi All,
> >> >>
> >> >> rbetuk = Array("A", "B", "C")
> >> >>
> >> >> is a very convenient way of creating arrays, but it creates only a 3x1
> >> >> dimension array. Can I declare a 3x2 or 3x3 dimension array in this
> >> >> way?
> >> >>
> >> >>
> >> >> Thanks,
> >> >> Stefi
> >> >>
> >> >>
> >>
> >>
> >>

>
>
>

 
Reply With Quote
 
=?Utf-8?B?Q3VydA==?=
Guest
Posts: n/a
 
      3rd Mar 2007
I tried till blue want to copy from Data E::L will trigger on j entry
to Donors A:H J-10.00 paste will need next row on Donors sheet
Thanks Bob have a great weekend
Thank You

"Bob Phillips" wrote:

> You don't need an array for that, just copy E:K over, and reduce J by 10
> afterwards
>
> Sh.Range("E" & Target.Row).Resize(,7).Copy wkSh.Range("A" & iNextFreeRow)
> wkSh.Range("F" & iNextFreeRow).Value = wkSh.Range("F" &
> NextFreeRow).Value - 10
>
> --
> ---
> HTH
>
> Bob
>
> (there's no email, no snail mail, but somewhere should be gmail in my addy)
>
>
>
> "Curt" <(E-Mail Removed)> wrote in message
> news:2E8EC5BB-944E-44E4-8DD9-(E-Mail Removed)...
> >I have never built an array. If i understand from your post the "A"
> > represents column. If ciorrect how do you get to the row. What i am after
> > is
> > to copy 7 cells in a row to a different wksh this row changes with each
> > entry
> > and would be triggered by entry in column 'J'. Also "J" value must be
> > reduced
> > by 10.00 "J" is formated to currency wksh's to copy to have first row
> > frozen
> > for labeld & scrolling. Would need next row or insert a row on sheets
> > copied
> > to. Have this code to start with
> >
> > Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal target As
> > Range)
> > Select Case Sh.Name
> > Case "Data", "Motorcycle", "Indian", "Native"
> > '1=data 6=Motorcycle 7=Indian 8=Native nbrs are for sheets
> > If target.Column = 10 And target.Value > 10 Then _
> > Call CopyStuff(target)
> > End Select
> > End Sub
> >
> > want to copy Data cells in row colmn E F G H I J-10.00 K
> > to donors wksh to next open row in wksh
> > If we can make it happen once I feel i can repeat for other sheets.
> > will need to modify for < 10.00 to different sheet My challenge is to
> > modify
> > for needed change.
> > Old dog new tricks
> > Thanks in advance
> > .
> > "Bob Phillips" wrote:
> >
> >> That doesn't actually create a 2d array, rather it creates an array of
> >> arrays. Instead of indexing like rbetuk(1,2) you have to use
> >> rbetuk(1)(2),
> >> not a great problem, but not as we are taught to index into arrays (more
> >> like Javascript multi-dimensional arrays).
> >>
> >> This gives standard 2d arrays, bujt is limited in how big the array can
> >> be
> >>
> >> rdetuk = ActiveSheet.Evaluate("{""A"",""B"",""C"";""D"", ""E"",
> >> ""F"";""G"",
> >> ""H"", ""I""}")
> >>
> >> --
> >> ---
> >> HTH
> >>
> >> Bob
> >>
> >> (there's no email, no snail mail, but somewhere should be gmail in my
> >> addy)
> >>
> >>
> >>
> >> "Jay" <(E-Mail Removed)> wrote in message
> >> news:2DA08C28-BF46-47E5-9804-(E-Mail Removed)...
> >> > Try using arrays themselves as arguments:
> >> >
> >> > rbetuk = Array(Array("A", "B", "C"), Array("D", "E", "F"), Array("G",
> >> > "H",
> >> > "I"))
> >> >
> >> > You can test this by reading the array 'in' and 'out' with the
> >> > following
> >> > test code:
> >> >
> >> > Sub stefi()
> >> > rbetuk = Array(Array("A", "B", "C"), _
> >> > Array("D", "E", "F"), _
> >> > Array("G", "H", "I"))
> >> > For Each itm In rbetuk
> >> > For Each itm2 In itm
> >> > MsgBox itm2
> >> > Next 'itm2
> >> > Next 'itm
> >> > End Sub
> >> >
> >> > --
> >> > Jay
> >> >
> >> >
> >> > "Stefi" wrote:
> >> >
> >> >> Hi All,
> >> >>
> >> >> rbetuk = Array("A", "B", "C")
> >> >>
> >> >> is a very convenient way of creating arrays, but it creates only a 3x1
> >> >> dimension array. Can I declare a 3x2 or 3x3 dimension array in this
> >> >> way?
> >> >>
> >> >>
> >> >> Thanks,
> >> >> Stefi
> >> >>
> >> >>
> >>
> >>
> >>

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
multidimensional arrays and array lists Rob Microsoft VB .NET 2 26th Jul 2007 01:00 PM
Converting a multidimensional array to 2 single dimensional arrays Claire Microsoft C# .NET 3 9th Mar 2005 08:34 PM
Multidimensional Arrays Janaka Microsoft Dot NET Framework 0 17th Feb 2004 05:44 PM
Re: Multidimensional Arrays - VBA Brent McIntyre Microsoft Excel Programming 14 8th Aug 2003 10:49 PM
Rectangular arrays Vs. multidimensional arrays. Nikhil Patel Microsoft C# .NET 2 21st Jul 2003 02:37 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:35 PM.