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
 how to access column of worksheet create by script

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
elfine Posted - 10/15/2009 : 12:53:33 AM
Origin Ver.8.0

Hello,everyone!

I want to process some data and I have a incomplete program here.

getfile -g i;
strpath$="%A";
fname$ = strpath.GetFileName(2)$;
if(fname.Match(ief$))
{%B=ief$;
win -t wks origin %B;
open -w %A;

bef$=ief$;
bef.replace("ief",bef);
%B=bef$;
win -t wks origin %B;

Then I want to copy the col(b) of worksheet named ief$ to col(b) of worksheet named bef$,but I don't know how to access the two worksheets and the two columns.

Best regards!
2   L A T E S T    R E P L I E S    (Newest First)
elfine Posted - 10/17/2009 : 01:40:35 AM
Thanks a lot!
larry_lan Posted - 10/16/2009 : 02:54:03 AM
Hi:

Better to use range variables to hold your worksheet and columns. And from Origin 8, we supports multiple worksheets in a workbook. Suppose ief$ and bef$ holds the workbook name and both have one worksheet named "sheet1", you can run:

range ra = [ief$]sheet1!col(b);
range rb = [bef$]sheet1!col(b);
rb = ra;


For more about range notation, please read our LabTalk Programming Help.

Thanks
Larry
OriginLab Technical Services

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