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
 work command is not working

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
SvenP Posted - 06/27/2011 : 06:05:07 AM
Origin Ver. 8.1 and Service Release (Select Help-->About Origin):
Operating System: Win7x64

Hello,

i wrote a script in Origin 7.5 but now with Origin 8.1 it is not working. Here is a part of the Script:

%N=Test;
win -n data %N;
work -c A;
work -t wks.ncols 4;
work -c Gauss;
work -c DS;

What happens after execution? None of the columns has a name (A, Gauss, DS) and the second and thirt column is not assigned to Y (they are assigned to nothing).

Thanks for your help.
1   L A T E S T    R E P L I E S    (Newest First)
Penn Posted - 06/27/2011 : 10:36:37 PM
Hi,

I have run your script in Origin 8.1 in my computer, it works. However, maybe you can try the following script, which does the same thing as your script.

%N=Test;
newbook name:=%N option:=lsname;  // newbook x-function
wks.ncols = 0;  // set column number to zero
wks.addCol(A);  // add A column
wks.addCol(Gauss);  // add Gauss column
wks.addCol(DS);  // add DS column
wks.col1.type = 4;  // set A column to X


Penn

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