Hello. I have a six locations checkboxlist and i'd like to create an array with the checked locations like this:
int[] v=new int[6];
private checkboxlist1_changed.....(...)
{
for(int i=0;i<6;i++)
{
if(checkboxlist1.getitemchecked(i))
v[i]=1;
else
v[i]=0;
}
}
string w=v.Tostring();
and it seems it's always a step behind, cant figure it why it doesnt working;
i also tried with string, stringbuilder,etc. what should it be? the getitemchecked method?