Re: how to return an Array ?
- From: "Ignacio Machin \( .NET/ C# MVP \)" <ignacio.machin AT dot.state.fl.us>
- Date: Mon, 20 Feb 2006 10:04:23 -0500
did you try string[,] ?
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Andrew" <Andrew@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:A543DB92-89FD-4A1E-83F1-0E15BB352845@xxxxxxxxxxxxxxxx
Hi all,
I have a method that wants to return an array. What datatype should I use
?
I tried using an "Array" but there was a compilation error. Why ?
public Array setReviewAll2 (int intNumQn)
int rows = intNumQn;
int cols = 3;
string [,] arrRv = new string [rows,cols];
for ( int i = arrRv.GetLowerBound(0); i <= arrRv.GetUpperBound(0); i++ ){
for ( int j = arrRv.GetLowerBound(1); j <= arrRv.GetUpperBound(1);
j++ )
{
...
...
...
}
}
arrRv.SetValue( strAnswer, i, j );
return arrRv;
}
TIA.
regards,
Andrew
.
- Prev by Date: Re: how to read BIOS data?
- Next by Date: Re: parameter information is not supported by the 'Microsoft.Jet.OLEDB
- Previous by thread: Resize control during OnSizeChanged
- Next by thread: Re: how to return an Array ?
- Index(es):
Relevant Pages
|