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
 if exist folder

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
uli_15 Posted - 12/05/2008 : 12:59:08 PM
Origin Ver. and SR (Select Help-->About Origin): 7.5 SR6
Operating System: WinXP SP2

Hi there,

it is very useful to work with the exist command. But I did not find any possibility to apply it to sub-folders inside an Origin project.
How could that be done?

Imagine I import data in a worksheet and depeding on what is in the header I would like to create a subfolder or, if it already exists, place the worksheet there.

Can anyone help?

Thanks in advance,

Uli
1   L A T E S T    R E P L I E S    (Newest First)
cpyang Posted - 12/06/2008 : 4:45:59 PM
Sorry, I don't see a simple way in Origin 75 to do this. You will need to add your own Origin C function.

If you have Origin 8, then it is very simple:
// assuming %A is the path you need to test

string strTemp="%A";
if(strTemp.IsPath()==0)
type "need to create subfolder";

See this link for all the string functions in Origin 8:

http://wiki.originlab.com/~originla/wiki/index.php?title=LabTalk:String_%28object%29


CP

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