10-30-2012, 03:59 PM
// Fixxed..
This problem left:
for (int y = 0; y < klasse.UserID; y++)
{
}
Error is : the operator "<" can not be applied to operands of type 'int' and 'object'
|
[C#] ForEach loop with Object
|
|
10-30-2012, 03:59 PM
// Fixxed.. This problem left: for (int y = 0; y < klasse.UserID; y++) { } Error is : the operator "<" can not be applied to operands of type 'int' and 'object'
10-30-2012, 05:31 PM
Maybe klasse.UserID is a object? try with casting it for(int y=0; y
10-30-2012, 05:37 PM
the userID is an object because of the mysql result^^ casting dont work too this error appears: Object reference not set to an instance of an object. |
|
« Next Oldest | Next Newest »
|