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
 Erase file-extention when importing

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
Simon Kirner Posted - 02/09/2011 : 04:02:46 AM
Origin Ver. and Service Release (Select Help-->About Origin): 8.1
Operating System: XP

Hi,
how can u erase the file extension .txt (from example.txt), I use the

impfile fname:=file$ filtername:="%filtername.oif";

for importing.
Thanks for your help!
Simon
1   L A T E S T    R E P L I E S    (Newest First)
Penn Posted - 02/09/2011 : 10:08:26 PM
Hi Simon,

What do you mean "erase the file extension"? I have tried the impfile X-Function to import .txt file and found that the extension .txt would add to the Long Name. Do you mean that you do not want the extension appears in the Long Name? If so, you can use the following script to trim the extension.

string strLN$ = page.longname$;
int nLen = Len(strLN$);
string strNoEx$ = Left(strLN$, nLen-4)$;
page.longname$ = strNoEx$;

If not, please provide more details on what you want.

Penn

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