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
 Get filename and store in a column
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Rtavakoli20

Canada
1 Posts

Posted - 08/16/2015 :  12:54:45 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Origin 9.0.0):
Operating System: Vista

I want to read some .txt files and their names and extract one part of their names and store in a single column. My code is:

newbook name:="FittingResult" option:=lsname;
GetFileName -m *.txt;
for (ii=1; ii<= count; ii ++) {
getfilename -g ii;
aaa$ = %A ;
bbb$ = aaa.getToken(1);
window -a FittingResult;
page.active = 1;
wks.col=1;
range r1= [FittingResult]"Sheet1"!1[ii];
r1 = bbb$ ;
};

but it doesnt work. Any help?

Edited by - Rtavakoli20 on 08/16/2015 12:58:43 AM

SeanMao

China
288 Posts

Posted - 08/16/2015 :  10:34:59 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

I have replied you by email.

Please check the inbox.

Sean

Regards!

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