Chance1234
IS-IT--Management
I have two string arrays
Im moving through the first array
And Im trying to build a string at the end of each iteration from the second array
byt the rank seems to not increase in number. What am I doing wrong ?
Chance,
F, G + 2MSTG
Code:
//Folders to look at
string[] fnames = new string[6];
fnames[0] = Fwatches.Default.fpath1.ToString();
fnames[1] = Fwatches.Default.fpath2.ToString();
fnames[2] = Fwatches.Default.fpath3.ToString();
fnames[3] = Fwatches.Default.fpath4.ToString();
fnames[4] = Fwatches.Default.fpath5.ToString();
fnames[5] = Fwatches.Default.fpath6.ToString();
//Subject Headers to Use
string[] fsubject = new string[6];
fsubject[0] = Fwatches.Default.fsubject1.ToString();
fsubject[1] = Fwatches.Default.fsubject2.ToString();
fsubject[2] = Fwatches.Default.fsubject3.ToString();
fsubject[3] = Fwatches.Default.fsubject4.ToString();
fsubject[4] = Fwatches.Default.fsubject5.ToString();
fsubject[5] = Fwatches.Default.fsubject6.ToString();
Im moving through the first array
Code:
foreach (string strpath in fnames)
{
And Im trying to build a string at the end of each iteration from the second array
Code:
StringBuilder sb2 = new StringBuilder();
sb2.Append(fsubject[fnames.Rank]);
byt the rank seems to not increase in number. What am I doing wrong ?
Chance,
F, G + 2MSTG