From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
03-20-2006 02:51 AM
03-20-2006 02:56 AM
Sorry I forget append my C# source
public string[] GetDataFromFirstRow
{
get
{
int iCol=dtData.Columns.Count;
string[] sAr=new string[iCol];
for(int i=0;i<iCol;i++)
{
sAr[i]=dtData.Rows[0][i].ToString();
}
return sAr;
}
}
public string[][] GetDataFromTable
{
get
{
int iRow=dtData.Rows.Count;
int iCol=dtData.Columns.Count;
//Array sAr=new string[iRow][];
//Array sAr=new ArrayList();
string[][] sAr=new string[iRow][];
for(int i=0;i<iRow;i++)
{
sAr[i]=new string[iCol];
for(int j=0;j<iCol;j++)
{
sAr[i][j]=dtData.Rows[i][j].ToString();
}
}
return sAr;
}
03-21-2006 02:29 PM
03-23-2006 02:28 AM
Thank to foresignt Veteran:
After reveived your sample file,I understand error reason.
Labview don't identify double[] [] just double[,] .
In other word,double[,] is array type and double[][] is object type.
I change my double[][] type to double[,] is alight.
Thank you very mush.
03-23-2006 03:48 PM