Syntax question

G

Greg Smith

I am trying to pass a reference to an array to another function. Something
like:


int x = ReadArray(myVars.theArray);

private int ReadArray(Array ar)
{
return ar[2, 2]
}

I can't seem to get it to except the reference passed.


Any help is greatly appreciated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top