Home All Groups Group Topic Archive Search About
Author
13 Dec 2006 4:25 PM
iMaiden
I'm trying to put the following in an array

    Dim snapBuffer1(3533600) As Byte  'raw video data
    Dim snapBuffer2(3533600) As Byte  'raw video data
    Dim snapBuffer3(3533600) As Byte  'raw video data

something like this:

    Dim snapBuffer(12)(3533600) As Byte  'raw video data

is there a  way to do what i'm after?

Author
13 Dec 2006 9:09 PM
Herfried K. Wagner [MVP]
"iMaiden" <googlegro***@theindianmaiden.com> schrieb:
> I'm trying to put the following in an array
>
>    Dim snapBuffer1(3533600) As Byte  'raw video data
>    Dim snapBuffer2(3533600) As Byte  'raw video data
>    Dim snapBuffer3(3533600) As Byte  'raw video data
>
> something like this:
>
>    Dim snapBuffer(12)(3533600) As Byte  'raw video data
>
> is there a  way to do what i'm after?

Check out the documentation on arrays (and especially jagged arrays).

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>
Author
14 Dec 2006 7:00 AM
iMaiden
thanks

  Dim snapBuffer(3533600)() As Byte
  ReDim snapBuffer(i)(3533600)


Herfried K. Wagner [MVP] wrote:
Show quoteHide quote
> "iMaiden" <googlegro***@theindianmaiden.com> schrieb:
> > I'm trying to put the following in an array
> >
> >    Dim snapBuffer1(3533600) As Byte  'raw video data
> >    Dim snapBuffer2(3533600) As Byte  'raw video data
> >    Dim snapBuffer3(3533600) As Byte  'raw video data
> >
> > something like this:
> >
> >    Dim snapBuffer(12)(3533600) As Byte  'raw video data
> >
> > is there a  way to do what i'm after?
>
> Check out the documentation on arrays (and especially jagged arrays).
>
> --
>  M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
>  V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>