Close uidoc without saving

I put values in the current form, but I want to close the uidoc without saving the doc. “uidoc.close” always prompt if saving document or not. How to supress it and don’t save it finally. “uidoc.selectall” and uidoc.clear" not working

Thanks

Elaine

Subject: close uidoc without saving

You’ll need to set a reserved field called SaveOptions to a value of “0” (a text zero). That will suppress the save prompt and allow you to close.