My suggestion would be to make your cCustom class be a subclass of Form which has the datasession stuff already built in. Just set all the appropriate properties so the form never shows, i.e. Visible=.F. etc.. You can then CREATEOBJECT("YourClass") and call its custom methods and manage the class code in the visual designer too. You get the benefit of having all the datasession stuff handled by Fox internally.