F FabioG Active Member Licensed User Longtime User Jul 6, 2013 #1 Hello, I have a problem using KeyValueStore. I have this object in my app Code: Copy Type WiFiCfg(SSID As String,WiFiKey As String,EncryptionKey As String,Channel As Int,Interface As String,Metod As Int,DHCPIP As String,DHCPDNS1 As String, DHCPDNS2 As String, ApType As String, Drivers As String) Dim WiFiCfg1 As WiFiCfg WiFiCfg1.Initialize I have so changed Code: Copy Type WiFiCfg(SSID As String,WiFiKey As String,EncryptionKey As String,Channel As Int,Interface As String,Metod As Int,DHCPIP As String,DHCPDNS1 As String, DHCPDNS2 As String, ApType As String, Drivers As String, InternalDHCP As Boolean) basically I added this variable Code: Copy InternalDHCP As Boolean Use this code to recall the settings Code: Copy If File.Exists(File.DirInternal, "Setings.dat") Then SettingsCfg.Initialize(File.DirInternal, "Setings.dat") WiFiCfg1 = SettingsCfg.GetObject("WiFiCfg") SettingsCfg.Close End If I get this error on module KeyValueStore. Code: Copy LastException java.land.illegalArgumentException: invalid value for field see attached screen How can I fix? thanks Fabio Attachments KeyValueStore-Error.jpg 88.7 KB · Views: 423
Hello, I have a problem using KeyValueStore. I have this object in my app Code: Copy Type WiFiCfg(SSID As String,WiFiKey As String,EncryptionKey As String,Channel As Int,Interface As String,Metod As Int,DHCPIP As String,DHCPDNS1 As String, DHCPDNS2 As String, ApType As String, Drivers As String) Dim WiFiCfg1 As WiFiCfg WiFiCfg1.Initialize I have so changed Code: Copy Type WiFiCfg(SSID As String,WiFiKey As String,EncryptionKey As String,Channel As Int,Interface As String,Metod As Int,DHCPIP As String,DHCPDNS1 As String, DHCPDNS2 As String, ApType As String, Drivers As String, InternalDHCP As Boolean) basically I added this variable Code: Copy InternalDHCP As Boolean Use this code to recall the settings Code: Copy If File.Exists(File.DirInternal, "Setings.dat") Then SettingsCfg.Initialize(File.DirInternal, "Setings.dat") WiFiCfg1 = SettingsCfg.GetObject("WiFiCfg") SettingsCfg.Close End If I get this error on module KeyValueStore. Code: Copy LastException java.land.illegalArgumentException: invalid value for field see attached screen How can I fix? thanks Fabio
E Esop Member Licensed User Longtime User Jul 6, 2013 #2 If you haven't already, I'd try deleting the previously created KeyValueStore file. Upvote 0
F FabioG Active Member Licensed User Longtime User Jul 7, 2013 #3 Esop said: If you haven't already, I'd try deleting the previously created KeyValueStore file. Click to expand... if delete lose all settings. in other applications can not add the variables in this way. Someone can help me? thanks Upvote 0
Esop said: If you haven't already, I'd try deleting the previously created KeyValueStore file. Click to expand... if delete lose all settings. in other applications can not add the variables in this way. Someone can help me? thanks
Erel B4X founder Staff member Licensed User Longtime User Jul 7, 2013 #4 Please try the attached update (copy it to the internal libraries folder). It is v1.51. Upvote 0
F FabioG Active Member Licensed User Longtime User Jul 7, 2013 #5 Erel said: Please try the attached update (copy it to the internal libraries folder). It is v1.51. Click to expand... unfortunately does not work how can I fix? thanks Upvote 0
Erel said: Please try the attached update (copy it to the internal libraries folder). It is v1.51. Click to expand... unfortunately does not work how can I fix? thanks
Erel B4X founder Staff member Licensed User Longtime User Jul 7, 2013 #6 Can you send me your project including the old file ([email protected])? Upvote 0
F FabioG Active Member Licensed User Longtime User Jul 8, 2013 #7 Erel said: Can you send me your project including the old file ([email protected])? Click to expand... This is a private project for a paid app ... if instead of code is the same? What exactly would you need? I'm sorry thanks Upvote 0
Erel said: Can you send me your project including the old file ([email protected])? Click to expand... This is a private project for a paid app ... if instead of code is the same? What exactly would you need? I'm sorry thanks
Erel B4X founder Staff member Licensed User Longtime User Jul 8, 2013 #8 There was a bug in the previous update I posted. Please try this one instead. If you get any error then please post the full error message from the logs. Attachments RandomAccessFile.zip RandomAccessFile.zip 27.8 KB · Views: 281 Upvote 0
There was a bug in the previous update I posted. Please try this one instead. If you get any error then please post the full error message from the logs.
F FabioG Active Member Licensed User Longtime User Jul 8, 2013 #9 Erel said: There was a bug in the previous update I posted. Please try this one instead. If you get any error then please post the full error message from the logs. Click to expand... it works perfectly! Erel, Thank you very much! Upvote 0
Erel said: There was a bug in the previous update I posted. Please try this one instead. If you get any error then please post the full error message from the logs. Click to expand... it works perfectly! Erel, Thank you very much!