Hi all! How do you edit a value after having written a Preferences.pref file?
ANY help as always is GREATLY appreciated!
Thank You! <3
How to change Preference file value?
Re: How to change Preference file value?
Help wrote: WritePreference...()
Creates or changes the specified key and its associated ...
sorry for my bad english
Re: How to change Preference file value?
Ok, so it's safe just to keep writing? But the problem is I need to change one simple value. not the whole file.
Thank You! <3
Thank You! <3
-
- Enthusiast
- Posts: 162
- Joined: Wed May 20, 2020 5:19 pm
- Location: The 3rd planet in the Solar System
- Contact:
Re: How to change Preference file value?
Hi.Mythros wrote:I need to change one simple value
What value?
If Integer - WritePreferenceInteger(Key$ , Value)
If Float - WritePreferenceFloat(Key$ , Value.f)
Please look in the help file, there shows all possible options.
Mac Studio M1Max, PB 6.12 Arm64 and x64.
Macbook Air M2, PB 6.12 Arm64 and x64.
Windows 10, PB 6.12 x64 and x86.
Macbook Air M2, PB 6.12 Arm64 and x64.
Windows 10, PB 6.12 x64 and x86.
Re: How to change Preference file value?
You should do some testing
If you open the preferences once,
you can always use one or more WritePreference.. commands.
If you call ClosePreference() at the end of your code the file is written completly. If you want or not.

If you open the preferences once,
you can always use one or more WritePreference.. commands.
If you call ClosePreference() at the end of your code the file is written completly. If you want or not.
Re: How to change Preference file value?
Thanks alot, guys! <3 
