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
 Origin Forum
 Workbook naming when importing ASCII file
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

phics

S. Korea
Posts

Posted - 05/19/2009 :  01:30:31 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): OriginPro8.0 Sr5
Operating System: XP


Hi,

When I import ASCII data whichtheir file names are e.g. A.001, A.002, A.003,...,
their workbook names become A, A_1, A_2, ...

Can I make the workbook name including extention automatically, like A001, A002, ...?


Thank you.


HJ

Laurie

USA
404 Posts

Posted - 05/19/2009 :  09:37:41 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
The workbook get renamed with the filename minus the extension. The filename with extension is used for the book long name; you'd have to run a short script to rename the book with A001, A002, etc.

If you create an import filter, using the Import Wizard, you can put the script there. On the last page of the Wizard, the Save Filters page, you want to check both the "Save filter" and "Specify advanced filter options" checkboxes and then click Next. You can then paste the script below:

string str$ = page.longname$;
str.Remove('.');
win -r %H %(str$);

OriginLab Technical Support
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