The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 execute doc -N from worksheet button
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Thomas_Unger

Germany
8 Posts

Posted - 05/25/2005 :  05:17:22 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

cpyang

USA
1407 Posts

Posted - 05/25/2005 :  3:45:18 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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


Go to Top of Page

Thomas_Unger

Germany
8 Posts

Posted - 05/26/2005 :  11:20:06 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000