Welcome, Guest
Please Login or Register.    Lost Password?

SetVariable and ini file (Win 7)
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: SetVariable and ini file (Win 7)
#15934
SetVariable and ini file (Win 7) 3 Years ago  
I'm having a strange behaviour with the variables.
I don't know if maybe is because I'm using Win 7 (right permissions, etc.)

This is the situation:
- A hidden variable can be changed by script , but its value isn't saved.
- A visible variable can be changed by script , but its value isn't saved.
- A visible variable can be changed by options dialog , its value is saved , but I can't change it anymore by script (only using SetOption, but this isn't very useful because I need to refresh everytime).

I tried this with my Sun Path addon. It uses 4 global variables. Doing this with 1 let me change the other 3 but not this one.

I will edit this post if found something new.
Jorge_Luis
Platinum Boarder
Posts: 795
graphgraph
User Offline Click here to see the profile of this user
Gender: Male My Rainlendar Skins Location: Argentina Birthday: 03/15
The administrator has disabled public write access.
 
#15968
Re: SetVariable and ini file (Win 7) 3 Years ago  
The problem is that the SetVariable() just keeps the modified value in the memory but GetVariable() reads it from the ini-file if it exists there. I think I'll have to change the functionality of the SetVariable() to store the value to the ini-file too.
Rainy
Moderator
Posts: 5956
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
get the latest posts directly to your desktop