Illegal STATIC on: <name>

You used the Static keyword in the declaration of one of the following:

  • An external C function
  • A class member (a variable, property, function, or sub)
  • A variable declared inside a class method or property
  • A variable declared at module level

Remove the keyword Static from the declaration.