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
 How to get the file name of an imported worksheet

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
cosy Posted - 12/08/2005 : 10:26:22 AM
Origin Version (Select Help-->About Origin): Origin Pro 7
Operating System: WinXp
Hi,
How do I get the file name of an imported worksheet.
The commands fdlog.get and getfilename return the path plus the file name. I just need the file name without the path.
Regards,
COSY.
1   L A T E S T    R E P L I E S    (Newest First)
Mike Buess Posted - 12/08/2005 : 11:23:20 AM
This works in Origin 7SR4...

fdlog.get(A,n,0); // %A=file path\name of nth file
fdlog.get(A,n,1); // %A=file name without extension
fdlog.get(A,n,2); // %A=extension

Mike Buess
Origin WebRing Member

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