Have you checked the value of zStaende[iRow][6]? Maybe it's not a number?

And what's the Bisher c<= 32) line? Partial code? If it's in the original that gives the error - the "c" before the <= could be a problem - as well as no comparison (If) or opening paren.