Class inheritance & base data types

I’m building a script library with an inherited class structure. It has to be done in LotusScript because it’s for the client.

I create a base class

Public Class BaseEventModel

I create create a derived class

Public Class EventManager as BaseEventModel

I have a constructor for another object like so,

Public Sub New(eventmanager as BaseEventModel)

When I call that constructor and give it an object of type “EventManager” I get “Type Mismatch on External Name” error.

Shouldn’t EventManager be a BaseEventModel? In other languages I have used, this works. Is this supposed to work in LotusScript? If it is, I guess I am just making a mistake. I could not find any documentation in the designer help that answered the question either way.

Thanks

Subject: It seems to be working now

Well, it seems to be working now.

The apparent cause was an arcane issue in the DECLARATION block. Everytime I opened the subform that was referencing the script library, I noticed that the line break after one of my public declarations was gone. When I saved, it gave me an error. I manually reenter the line break, and It worked.

The real problem is probably something else, but I choose to blame it on the Designer removing the line break and thinking the variable wasn’t declared.