how to assign values outside [Resolved]

Posted by Oswaldlily under ASP.NET on 12/9/2011 | Points: 10 | Views : 890 | Status : [Member] | Replies : 4
"storstrength carries 10 values"
"storstrength" not valid outside....how to use it outside
all values shd assigned to int strengthval
while (n < splitstrength.Length)
{
string storstrength = splitstrength[n].Substring(2, 2);
n++;
}
int strengthval = storstrength;




Responses

Posted by: Varung on: 12/10/2011 [Member] Starter | Points: 50

Up
0
Down

Resolved
inorder to store all the values of splitstrength u have to declare array or arraylist or list in the place of storstrength

G.Varun

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Varung on: 12/9/2011 [Member] Starter | Points: 25

Up
0
Down
string storstrength;
while (n < splitstrength.Length)
{
storstrength = splitstrength[n].Substring(2, 2);
n++;
}
int strengthval = storstrength;

G.Varun

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Oswaldlily on: 12/9/2011 [Member] Starter | Points: 25

Up
0
Down
storstrength has 10 values...so outside oly 10th value getting printed

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Hmanjarawala on: 12/9/2011 [Member] Bronze | Points: 25

Up
0
Down
What do you want then?

plz define your question in detail

Himanshu Manjarawala
Sr. Software Engineer@AutomationAnywhere
http://fieredotnet.wordpress.com/

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response