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
 Origin Forum
 Workbook naming when importing ASCII file

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
phics Posted - 05/19/2009 : 01:30:31 AM
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
1   L A T E S T    R E P L I E S    (Newest First)
Laurie Posted - 05/19/2009 : 09:37:41 AM
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

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