473,320 Members | 1,933 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Handing a multidimensional Array as parameter

Hi,

I have a multidimensional Array (2 dimensions). I'd like to hand that over
to another function (respective another thread in another class, but that
should be the same, shouldn't it?).

Part of the calling function:
Dim StatCreator As New Statistik(Datei_Inhalt())

And the destination class:
Public Class Statistik

Dim Array()() As String

Public Sub New(ByVal MeinArray()() As String)
Array = MeinArray.Clone
End Sub

Problem: syntax. It won't let me do ...new Statistik(Datei_Inhalt()()... nor
Datei_Inhalt or anything else I've tried.

Does anyone know how that works?
Dec 15 '06 #1
2 1351
Great, thanks a lot! :-)
Dec 15 '06 #2
Hi jens,

you should probably read the difference about jagged and
multidimensional arrays.

there is a lot on the web. for instance:
http://www.informit.com/guides/conte...eqNum=127&rl=1

Jens ha scritto:
Hi,

I have a multidimensional Array (2 dimensions). I'd like to hand that over
to another function (respective another thread in another class, but that
should be the same, shouldn't it?).

Part of the calling function:
Dim StatCreator As New Statistik(Datei_Inhalt())

And the destination class:
Public Class Statistik

Dim Array()() As String

Public Sub New(ByVal MeinArray()() As String)
Array = MeinArray.Clone
End Sub

Problem: syntax. It won't let me do ...new Statistik(Datei_Inhalt()()... nor
Datei_Inhalt or anything else I've tried.

Does anyone know how that works?
Dec 15 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Wihlelm Bierbaum | last post by:
I'm trying to make use of a certain method of a COM object that takes a multidimensional array as its sole parameter. Here's an example of the construction of said array: $cA = array(); $cA =...
2
by: bogdan.maxim | last post by:
I have the folowing structure defined in a C++ COM Project: struct a { DOUBLE a1; //This is the problem DOUBLE a2; DOUBLE a3; };
9
by: Charles Banas | last post by:
i've got an interesting peice of code i'm maintaining, and i'd like to get some opinions and comments on it, hopefully so i can gain some sort of insight as to why this works. at the top of the...
5
by: whisper | last post by:
Hi: there is an issue that confuses me and the FAQ did not clarify it for me. (Sorry I am just learning!) Let say I define a multidimensional array in my main routine as follows: int...
21
by: vmsgman | last post by:
Here is a code sample ... int blah = ReadFile( defArray, defFileName, w, h); // Read File Contents into memory array and return for processing public int ReadFile( ref ushort nArray, string...
5
by: Philip Wagenaar | last post by:
what is the quickest way to check if an array is multidimensional
2
by: nitinm | last post by:
hi I want to make a program whose requirement are as following: 1) it has to create an NxN matrix after reading input (i.e. N) from a file in the main() itself. 2) it has to send the array as...
1
by: =?ISO-8859-1?Q?Norbert_P=FCrringer?= | last post by:
Hello, does anyone know, if it is possible (via reflection?) to instantiate a multidimensional array of a certain type, which is first known at run time? e.g. at runtime I have to create an...
9
by: Slain | last post by:
I need to convert a an array to a multidimensional one. Since I need to wrok with existing code, I need to modify a declaration which looks like this In the .h file int *x; in a initialize...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.