Run Time error




I am new at Livecycle, and am getting a strange error. I have created a dynamic form. And am now trying to delete some of the functionality from the for, as it is not needed. Whenever I attempt to save the form, i get a runtime error, and the application shuts down. When i go to reopen the form, all of the info is gone, and it now asks to create a new form either by importing or blank. What am I doing wrong?