Hey Bob
You could use the DEFINE CLASS Command or you could create a class in the class browser. If you base it on ... say CUSTOM Then add methods and properties to call or just fire the code in the class and let it go.
Thanks...
Dan Rowe
Eagle Technology