how to access a string assigned some value in a for loop, outside the for loop
i may provide you with the code for thy convenience

```
for (Int32 i = 0; i < yourlist.Count; i++)
    {
        String str=(yourlist[i].ToString() + ",");
    }

    String str1 = (str).Substring(0, str.Length - 1);

```

the error displayed is

> 
> The name 'str' does not exist in the current context 
> 
> 
>