Not sure how to do what i am wanting I have 3 lineArrays setup with data from a .csv file, I am wanting to check the 3 Groups of data to make sure they are the same, but I would like it to ignore filename if it contains more than 13 characters. Below is the program that runs, but it returns wrong results, so for example if I have a spreadsheet that contains Example
I am trying to make it error out on the middle 2, but not on the top and bottom because all data is the same and the top one has more than 13 characters in the filename
int file = lineArray[cn.filename].Length;
if (file > 13)
if ((!lineArray[cn.datacard].Equals(lineArray[cn.partNo].Equals(lineArray[cn.filename]))))
{
tmpOut = lineArray[cn.partNo] + " - Config # and Data Card # do not match";
Error(tmpOut, errOut);
continue;
}
Aucun commentaire:
Enregistrer un commentaire