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
 Is win -b %X the best ?

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
alex_eagle Posted - 10/23/2002 : 06:46:10 AM
I work with an Origin project containing several sub-folders.
In each folder there is layout page with the name CompXXX.
When I use win -b Comp I get the layout-page of the very first folder.
How can I tell Origin that it should begin its search in the active folder of the project so that the layout page in the current folder becomes active.

Thanx


1   L A T E S T    R E P L I E S    (Newest First)
CStorey Posted - 10/23/2002 : 10:58:26 AM
Hi Alex,

Unfortunately most of the Origin commands do not yet recognize different folders in Projectr Explorer. Most commands work on the active folder or all folders... look at doc -ef vs. doc -e.

Also you might find this function handy for switching between folders if you choose to automate your work.

//----------------------------------------------------------
//The following function will implement a labtalk command to switch to //a named folder, (case sensitive)
//
//Once you have this function compile, you can switch between your top //level folders with the command "pecd SomeFolder;" assuming that you //have such a folder. To swtich to other folders, you will nedd to //specify the full path (case sensitive)
//----------------------------------------------------------
void PECD(string strFolder)
{
Folder root;
root = Project.CurrentFolder;
// assume 1st level folder
string strPathName = "/"+ Project.GetName() + "/" + strFolder + "/";

if ( !root.ChangePath(strPathName) )
{
printf("Error!!! Can't change path to %s\n", strPathName );
}
out_str("");
}
//----------------------------------------------------------

Hope this helps,
Craig


Craig Storey
Origin WebRing Member - http://g.webring.com/hub?ring=originwebring

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