Vantage 8.03 clear form

I am writing a customization for in the quoteform and i need functions
to clear and to close the form. I looked in the object explorer and
thought that oTrans.clear() should clear my form, but it gives me an
error. is there any other way? and what about closing the form?

Thanks for your help