oForm = createobject("myFormClass")This particular class is for a custom dialog form and hence will always run as modal. I was thinking to create an object before instancing the form and pass the return value to that object but I'm wondering if there's a more direct way of doing this.