>create form myForm as myForm from ? >>
modify class {myformclass here} ASELOBJ(aa,1) ox=aa[1] ox.saveas("myformclass.scx")For once, I tested this and you get a form with all the PEMS intact, same as the class. You can even build a dataenvironment object and pass (a reference to) it as the second parameter in .saveas(), and it will be saved as the DE in your scx.