Hi i've an issue
if (ds2.Tables[0].Rows.Count > 0)
{
int i = 0,j=0,k=0;
int count = 0;
char[] arr1=new char[ds2.Tables[0].Rows[0][0].ToString().ToCharArray().Length];
char[] result = new char[ds2.Tables[0].Rows[0][0].ToString().ToCharArray().Length];
while (i < ds2.Tables[0].Rows.Count)
{
arr1 = ds2.Tables[0].Rows[i]["PrivilegeID"].ToString().ToCharArray();
if(i==0)
{
result=ds2.Tables[0].Rows[i+1]["PrivilegeID"].ToString().ToCharArray();
}
count = arr1.Length;
for (j = 0; j < count; j++)
{
result[j]=Convert.ToChar((Convert.ToBoolean(arr1[j]))||(Convert.ToBoolean(result[j])));
}
i++;
}
Error Cannot implicitly convert char to bool
Join Hands Change lives
Thanks & Regards
Straight Edge Society