.. not valid outside of class scope

You used "dotdot" syntax outside of a procedure within a class. The "dotdot" syntax is only valid inside procedures within a class. You use "dotdot" notation when referring to a procedure in a base class when the derived class has a procedure of the same name, as in the following example:

Class BaseClass
   Sub MySub
      Print "In BaseClass's MySub"
   End Sub
End Class

Class DerivedClass As BaseClass
   Sub MySub
      Print "In DerivedClass's MySub"
   End Sub
  
   Sub MyOtherSub
      Call MySub                   ' Print "In DerivedClass's MySub"
      Call BaseClass..MySub        ' Print "In BaseClass's MySub"
   End Sub
End Class

Remove the "dotdot" syntax and use an object reference variable in its place.