You can also launch the form with just do form myform name thisismyform. Also there is the _screen object. Prior to launching your program you can get the value of _screen.formcount and after executing you can decrement it by _screen.forms(N).release