Subject:DoMenu and SfStatus
Posted by: TCarrillo
Date:11/5/2007 11:26:46 PM
Using DoMenu to do a function such as Import or Export regions always return Success even though I hit cancel. Is there a way to determine if someone hit's cancel so the script will abort? SfStatus exportregions = app.DoMenuAndWait("RegionList.Export", false); Thanx |
Subject:RE: DoMenu and SfStatus
Reply by: _TJ
Date:11/6/2007 4:19:18 PM
It depends on the command. In this case no, the return value of the dialog isn't captured, and you will always get success back from that command. For other commands, (those that show a progress bar), the return value will indicate whether the process ran to completion or was canceled. But for commands that are instantaneous (i.e. don't have a progress bar). You will only get a non-success result when we _fail_ to show the dialog box tj |
Subject:RE: DoMenu and SfStatus
Reply by: TCarrillo
Date:11/6/2007 10:58:06 PM
Good to know, thank you for the quick response. |