In Dynamics NAV 2009 page.RUNMODAL can have actions OK, Cancel, LoookupOk, LookupCancel, Yes, No, Close, FormHelp, RunObject, RunSystem. Like it is described at http://msdn.microsoft.com/en-us/library/dd355151.aspx you can create code like:
IF Page.RUNMODAL(21, MyRecord, …) = Action::Close THEN…;
Posted inDynamics NAV & BC Tips & tricks