Not sure if there is where I should be posting this information but here it goes (please direct me where to go if this is the wrong place)
I have a variable that looks like this
variable r00000000000000000000000000
or r10101010101010101010101010
and everytime a certain action is taken one of the 0's will change.
I need to check this against a stored variable to see if only 1 was changed.
in php i would do something like this
for ($x=0; $x<27; $x++)
if (!($variable{$x} == $storedvariable{$x}))
$changes++;
How do I do this in c#
any help or suggestions would be greatly appreciated


Reply With Quote
Bookmarks