I look forward when I can help someone with it.Thanks for creating that. That's really good.
Also it is a very good example of how to define and use classes.![]()
Hello Filippo,
Fixed problem with password save/read.Hello Filippo,
I'm using this class a long time ago, but I found one bug when one client of mine told me this:
Supose you try to save this:
manager.SetString("Password","000000")
and when you try to retrieve, you get:
just "0"
and the expected is "000000"
thank you
'Dim manager As clsPreferenceManager
If manager.IsInitialized = False Then
manager.Initialize
End If
i found my mistake watching your sample:
I create a function to make easy the calls for your class and I initialize everytime, now I just check if initialized or not and works fine
B4X:'Dim manager As clsPreferenceManager If manager.IsInitialized = False Then manager.Initialize End If
If not(manager.IsInitialized) Then
manager.Initialize
End If