Easy (ish) Note that I deal with multi dll so some of this may not apply.
So First, make sure that you do this in the data dll. Then I rename the module to something like the class. so testclass.clw. That stops the numbering from stuffing everything up.
Then, in global embeds in the app where you want it. add an “include(‘testclass.inc’),once”
Then in the procedure where you want the class, data embed add
You can then refer to tc.myMethod whereever you want
If you’re using ABC, search the help for “ABCIncludeFile”. From there, you’ll find “How to Create ABC Compliant Classes”. If you never intend to re-use your class anywhere, then the other way is probably OK.