arduino+vb6

but another thing appears as an error in this code:

So, look at that that code is doing. It is trying to read from an array of pins, when it is designed to read from a pin. The function is not designed to take an array of pins, so the compiler is telling you that.