I have the following line of code in my C# Winforms app:
excell_app.createHeaders(1, 1, "Product_1", "A1", "A1", "n");
Where it says "Product_1"
I need it to loop through all my items in my array and where it says "A1", "A1"
I need it to get the next value, i.e "B2","B2"
I am unsure as to which loop I should use because I need a for next
to interate through my array but then I need to increment the value for the location for "B2","B2"
Here is my attempt:
foreach (string value in ProductName)
{
excell_app.createHeaders(1, 1, "+ value +", "A1", "A1", "n");
}
I do not know how to Iterate through letters and numbers for my location values:
Something like: (I think this may be wrong, please advise)
char X='A'+1;
X++