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
 Is win -b %X the best ?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

alex_eagle

Austria
36 Posts

Posted - 10/23/2002 :  06:46:10 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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


CStorey

Canada
137 Posts

Posted - 10/23/2002 :  10:58:26 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
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