Storage class or visibility does not match forward declaration: <subprogram name>
You declared a function, sub, or property with a Declare statement and then defined the procedure with a Function, Sub, Property Set, or Property Get statement. The definition differs from the declaration in one or another of the following respects:
- The declaration contains the keyword Static but the definition doesn't, or vice versa. (The keyword Static specifies that the storage class of the procedure's variables will be static by default.)
- The procedure is declared as Public but defined as Private, or vice versa.
Change the declaration or the corresponding definition of the procedure so that they match.