//from com VBA call below this loop worked fine with array
for (int i = 0; i < myLength; i++)
{
string[] ar = Array.ConvertAll((object[])o1[i], x => (string)x);
List st = new List (ar);
foreach (var x in st)
str += "*" + x + "*";
}
//from com VBA call below this loop not worked fine with array for (int i = 0; i < myLength; i++)
{
string[] stt = (string[])s4[i];
for (int p = 0; p< stt.Length; p++)
{
val += stt[p];
}
}
for (int i = 0; i < myLength; i++)
{
string[] ar = Array.ConvertAll((object[])o1[i], x => (string)x);
List
foreach (var x in st)
str += "*" + x + "*";
}
//from com VBA call below this loop not worked fine with array
{
string[] stt = (string[])s4[i];
for (int p = 0; p< stt.Length; p++)
{
val += stt[p];
}
}

Shweta LodhaRank #31 · 39.8K reputationPosted Apr 14, 2014, 7:58 AM EDT
//from com VBA call below this loop not worked fine with array
{
string[] stt = (string[])s4[i];
for (int p = 0; p< stt.Length; p++)
{
val += (string)stt[p];
}
}
Hope it should work
Graeme Pariot148 reputationPosted Apr 14, 2014, 8:01 AM EDT
Shweta LodhaRank #31 · 39.8K reputationPosted Apr 14, 2014, 8:01 AM EDT
VulpesRank #55 · 29.2K reputationPosted Apr 14, 2014, 9:52 AM EDT