* hello.prg * oHello = CREATEOBJECT("Hello") oHello.SayHi() DEFINE CLASS Hello AS Custom FUNCTION SayHi MESSAGEBOX("Hi there, from the Hello.SayHi() method!") ENDFUNC ENDDEFINEThis is a little different thatn a class library, but if you were to add the custom method "SayHi" to your Hello class, the only differences is that in a visual class library when you add a method, you do not put in the FUNCTION SayHi/ENDFUNC lines and you need to have the SET CLASSLIB command in order for VFP to find your class.