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
 Project path?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

morganico

10 Posts

Posted - 12/05/2008 :  10:24:17 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. 8

Hi again,
Apologies for being such a dunce but i cannot find this information any where.
I presume there is a built in variable in Orgin which contains the project path....what is it? I'm looking for something similar to system.path.program$ but which references the directory which the .opj file was opened from....

thanks again!

cpyang

USA
1406 Posts

Posted - 12/05/2008 :  1:47:14 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Yes, it is kind of a misleading name, but

system.path.origin$

is what you need.

Also available as %X


string strProjPath$="%X";
string str1$ = system.path.origin$;
if(str1!=strProjPath$)
  type "something is wrong";
else
  type "ok";



This link gives all the system string registers:

http://wiki.originlab.com/~originla/wiki/index.php?title=LabTalk:String_registers

and this one for the system object:

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



CP

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