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
 Erase file-extention when importing
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Simon Kirner

3 Posts

Posted - 02/09/2011 :  04:02:46 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

Penn

China
644 Posts

Posted - 02/09/2011 :  10:08:26 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
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