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
 Value of variable %Y changed?

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
tib Posted - 04/29/2004 : 09:01:36 AM
Hi,
in earlier times the variable %Y contained the path of the Origin.exe file. In my case C:\Origin7Now some scripts seem not to work anymore.
The variable %Y has now the value
C:\Documents and Settings\tib\Application Data\OriginLab\Origin7E\User FilesHow did this change? I am not aware that I changed anything.
How can I change this back?
I tried Menubar | Tools | Options | File Locations .. without success.
Thanks for help, Tilman.


5   L A T E S T    R E P L I E S    (Newest First)
Laurie Posted - 05/05/2004 : 3:58:20 PM
Hi Tilman,

I had a thought...have you changed your login account? My guess is that either you're now using a different user account or permissions have changed on your account.

This may have accounted for the change in %Y.

Please let me know.
Thank you.

OriginLab Technical Support
tib Posted - 05/02/2004 : 3:40:45 PM
Thanks a lot Mike,
yes, the registry was changed. I changed it back to C:\Origin7
I don't know how this could change (even Laurie cannot explain...)
I don't have Origin7.5 only there should be any User-Path Registry.
Strange enough.
Thanks anyway, Tilman.

Mike Buess Posted - 04/29/2004 : 11:53:04 AM
Hi Tilman,

SR4 should not have changed your INI path, but it looks like it did. You might try a registry fix...

HKEY_CURRENT_USER\Software\OriginLab\Origin 7.0 (or 7)\English

If there is a Path key then change its value to the program path.

Hope that helps,

Mike Buess
Origin WebRing Member
tib Posted - 04/29/2004 : 09:41:57 AM
Thanks Easwar,
Does this mean I have to change all my LabTalk scripts where %Y is used?
since I cannot set %Y="C:\Origin7\"
I do not have Origin7.5 but V7SR4. So did this change when I applied to SR4? How can I avoid change all my scripts?
Tilman.

easwar Posted - 04/29/2004 : 09:18:43 AM
Hi Tilman,

The %Y variable holds the location of the user ini files path (or the user files folder). In versions earlier to 7.5, this path was the same as the Origin EXE path because there was no support for multiple users. Starting with version 7.5, we added support for multiple users by introducing the User Files folder. So now %Y points to the user files folder, which can be different for different users (each user gets to decide this path location at the time of first running Origin).

If you want to get the EXE path, you can do this in LabTalk with the following statement:
%a=system.path.program$
The above existed in previous versions as well, but the ini path (%Y) used to be the same as what this returned.

In Origin C, there is GetAppPath() function which can be used to get either the INI path or the EXE path by passing a different argument.

Easwar
OriginLab




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