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
 fdLog.openPath(Z);

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
kid Posted - 12/17/2001 : 3:49:05 PM
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...
5   L A T E S T    R E P L I E S    (Newest First)
CStorey Posted - 12/20/2001 : 10:01:01 AM
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
kid Posted - 12/18/2001 : 4:25:51 PM
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...
CStorey Posted - 12/18/2001 : 4:04:30 PM
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
kid Posted - 12/18/2001 : 10:12:39 AM
Not, that did not work. Any other ideas?
Alex...
Mike Buess Posted - 12/17/2001 : 8:31:47 PM
Try this...

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


Mike Buess
Origin WebRing Member

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