Static local variable '<variablename>' is already declared

Another static local variable with the same name has already been declared.

Error ID: BC31401

To correct this error

  1. Remove redundant static local declarations.

  2. Give each static local variable a unique name.

See Also

Reference

Static (Visual Basic)