Search code examples
vb6

What does this array declaration mean?


code : Public ArryProErrorCode() As String, TempArry

I don't know what TempArry means when declare ArryProErrorCode() array?

can anyone explain it? thx


Solution

  • TempArray is another variable declared on the same line but because you did not specify its type, it is a Variant.

    You can declare multiple variables on the same line e.g.

    Dim var1 As String, var2 As String, var3 As Long