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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 execute doc -N from worksheet button

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

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



The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000