In a script library (“MyLibrary”) I’ve created a custom class (“MyClass”). I’m trying to use the library within a form. In the forms Options section i’ve added:
Use “MyLibrary”
On a button Click, I have:
Dim mc As MyClass
I get the error “Class or type name not found: MYCLASS”.
Any help would be greatly appreciated! Thanks in advance
Subject: RE: Using Custom Class from Script Library
Sometimes when you implment (use) your own custom data types you need to recompile your LS code. Do that by choosing Tools > Recompile All LotusScript. The other way to accomplish that is close and open the environment so it will reload the new data type, as you did. This is no different than any other OO language when you add a new data type.
Subject: RE: Using Custom Class from Script Library
Hi,
Custom class in LotusScript: A few more questions
This document provides a list of links to both external and internal developerWorks Lotus resources that will help you better understand user-defined (that is, custom) classes in LotusScript. This FAQ was created by Andrea Span.