| T O P I C R E V I E W |
| Thomas_Unger |
Posted - 05/25/2005 : 05:17:22 AM Origin Version (Select Help-->About Origin): 7.5803 Operating System: win 2ooo SR4
Hello,
I have a simple question: Executing the doc -n command from a worksheet button sometimes ends up with a script execution error or, in worst case, with a crash. Same if placing the doc -n command in a file, calling it from the button with a run command. This might have something to do that the worksheet is closed while still executing the script.
Is there a simple way out except clicking the new project in the menu bar?
Thank you very much in advance for any help
Best regards
Thomas |
| 2 L A T E S T R E P L I E S (Newest First) |
| Thomas_Unger |
Posted - 05/26/2005 : 11:20:06 AM Dear cpyang,
Thank you very much for this tip, it works perfect. But where to find such useful information except asking you professional guys here in the forum?
Best regards
Thomas |
| cpyang |
Posted - 05/25/2005 : 3:45:18 PM You need to delay the script execution, so if the doc -n is the last thing, then just put ; in front of it, like
some script; ;doc -n
In LT, ; in front of script will put all subsequent script into delayed execution.
CP
|
|
|