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
 Forum for Origin C
 Working with subfolders

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
roconnor Posted - 11/30/2004 : 1:32:31 PM
Origin Version (Select Help-->About Origin): 7.5
Operating System: WinXP

Hi,

I am processing a number of worksheets in subfolders from the root called 'Data1', 'Data2', 'Data3', etc. I would like the results to be output to a worksheet 'Stats' located in another folder called 'Results', or even in a worksheet located in the root folder. I am using embedded foreach loops to process all the columns in each worksheet, then each worksheet in a subfolder, then each subfolder of the project.

When specifying where the results are written out to I think I am having a problem finding the 'Stats' worksheet to write the output, since I am working on a worksheet in another folder.

Could someone give a few suggestions as to how I might specify the absolute path for a worksheet, so regardless of what subfolder I am currently working in, Origin will be able to write to 'see' the worksheet I need to write out to.

Thanks,

Rod.
1   L A T E S T    R E P L I E S    (Newest First)
easwar Posted - 11/30/2004 : 1:38:28 PM
Hi Rod,

One way to do this: Try declaring your result worksheet prior to entering the loop in which you go thru all subfolders. So you can first set the active folder to be "results" subfolder (if needed) and declare/point to your worksheet outside the loop, and then within the loop you should be able to write to the result worksheet that you have already declared.

Easwar
OriginLab



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