Hi All,
Hope you can help -
I'm trying to use a configuration file to store app settings like button colour, enabled, disabled, panel colour, text size and text colour. I have this working with the local module.
The next stage was to pull this from API; I have HTTP job to download the settings and store them in the settings.txt. This is also working OK.
So, now I'm trying to assign the value to change the panel colour and I'm getting app crash.
Tracking this down, I believe it's because the values stored in SQL server are in VARCHAR - so, I have it as a string. (I think)
When I use this - I get an app crash
Could someone point me in the right direction, how to store the value as an object, so when I pull the value via KVS it doesn't crash the app?
I'm presuming it won't be simple as declaring var as an object and using that.
Thanks
Hope you can help -
I'm trying to use a configuration file to store app settings like button colour, enabled, disabled, panel colour, text size and text colour. I have this working with the local module.
The next stage was to pull this from API; I have HTTP job to download the settings and store them in the settings.txt. This is also working OK.
So, now I'm trying to assign the value to change the panel colour and I'm getting app crash.
Tracking this down, I believe it's because the values stored in SQL server are in VARCHAR - so, I have it as a string. (I think)
When I use this - I get an app crash
B4X:
pnl_line.Color = kvs.Get(pnl_line)
Could someone point me in the right direction, how to store the value as an object, so when I pull the value via KVS it doesn't crash the app?
I'm presuming it won't be simple as declaring var as an object and using that.
Thanks