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
 fdLog.openPath(Z);
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

kid

USA
20 Posts

Posted - 12/17/2001 :  3:49:05 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
This command is very useful, but when I use it I lose the Origin directory (C:\Program Files\Originlab\Origin61\). How can I reset this? I try to use:
%Z=”C:\Program Files\Originlab\Origin61\fileName”;
open –n %Z;
but keep getting the error message:
C:\PROGRAM file not found.

Alex...

Mike Buess

USA
3037 Posts

Posted - 12/17/2001 :  8:31:47 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Try this...

%Z=%Yfilename;
open -n "%Z";


Mike Buess
Origin WebRing Member
Go to Top of Page

kid

USA
20 Posts

Posted - 12/18/2001 :  10:12:39 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Not, that did not work. Any other ideas?
Alex...
Go to Top of Page

CStorey

Canada
137 Posts

Posted - 12/18/2001 :  4:04:30 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

I believe the problem is the space in the directory name. You are not loosing the Origin directory, it's still saved in the %Y variable. You just need quotes around the %Z in the open command. (Mike's code should work!)

This worked for me. (Origin 6.1 SR4)

fdLog.openPath(Z);
%Z=; //Report Selected path

%Z="%YCraig\DP_updates\HBTvars.dat";
open -n "%Z";

Craig

Craig Storey
Origin WebRing Member - http://g.webring.com/hub?ring=originwebring
Go to Top of Page

kid

USA
20 Posts

Posted - 12/18/2001 :  4:25:51 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
yes, i understand that the space is the problem, but how can I solve it.
none of the scripts have work for me so far.

I'm using OriginPro 6.1, I'm developing a dialog for Origin, in which I have a browse for folder button; and after clicking there nothing works any more.

Alex...
Go to Top of Page

CStorey

Canada
137 Posts

Posted - 12/20/2001 :  10:01:01 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Alex,

Both the scripts that Mike and I posted work for me. I suspect the error is somewher else in your script. At this point the best thing to do is post the script or send it to me and I'll see if I can find the error.

You should also make sure you're running the latest service pack to use the fdlog.openPath(Z) function.

Craig - cstorey@canada.com

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