Page 1 of 1

Module: Preferences

Posted: Thu Jun 01, 2017 11:50 am
by Peter
Hello,

the PureBasic Preferences-Library for SpiderBasic:

https://github.com/spiderbytes/Preferences

Greetings ... Peter

Edit: Removed code; added github-Link

Re: Module: Preferences

Posted: Fri Jun 02, 2017 1:53 pm
by SparrowhawkMMU
I was not even aware of it in PureBasic! :D

Thanks Peter. Incidentally, do you have a github/gitlab account where you have all your great libraries/modules in a central place?

It would be nice if Fred added a user-contributed modules section to the SB website so that your code and that of the others who have contributed would be readily available and easy to find.

Re: Module: Preferences

Posted: Fri Jul 07, 2017 9:40 am
by Peter
SparrowhawkMMU wrote:Incidentally, do you have a github/gitlab account where you have all your great libraries/modules in a central place?
Since just now. ;-)

(see first posting)

Greetings ... Peter

Re: Module: Preferences

Posted: Fri Jul 07, 2017 10:15 am
by SparrowhawkMMU
+1

Re: Module: Preferences

Posted: Tue Sep 19, 2017 11:11 pm
by IdeasVacuum
Hi Peter
Where is Preferences.prefs stored? :?

Re: Module: Preferences

Posted: Wed Sep 20, 2017 6:50 am
by Peter
IdeasVacuum wrote:Where is Preferences.prefs stored? :?
in your Browser.

Screenshot of my Google Chrome - Console (opened with <F12>:
Image

Greetings ... Peter

Re: Module: Preferences

Posted: Wed Sep 20, 2017 1:35 pm
by IdeasVacuum
Hi Peter

Ah, I was expecting Preferences.pref to be a stand-alone file, no wonder I could not find it. So, it seems to work on Android too, but the app must create the initial data list first. I'm going to have another play with it, as a work-around for SB's need to ask the User to select a text file, which in most scenarios with regards to smartphone app data use is a definite no no.

EDIT: Well, it works but the data save is not persistent so next time the app is run, the most recent prefs are not there to read.
Going to try SQL........