E Electrocutioner Member Licensed User Longtime User Jun 19, 2015 #1 I am having the invalid double error in the first read of the file using keyvaluestore. I am not sure how to check if the read is NULL I tried and I am getting a syntax error. If IsNumber(kvs.GetSimple("module_1_Addr)) Sub Activity_Resume Module_1_ADDR = kvs.GetSimple("module_1_Addr") Module_2_ADDR = kvs.GetSimple("module_2_Addr"): Module_3_ADDR = kvs.GetSimple("module_3_Addr"): Module_4_ADDR = kvs.GetSimple("module_4_Addr"): End Sub Last edited: Jun 19, 2015
I am having the invalid double error in the first read of the file using keyvaluestore. I am not sure how to check if the read is NULL I tried and I am getting a syntax error. If IsNumber(kvs.GetSimple("module_1_Addr)) Sub Activity_Resume Module_1_ADDR = kvs.GetSimple("module_1_Addr") Module_2_ADDR = kvs.GetSimple("module_2_Addr"): Module_3_ADDR = kvs.GetSimple("module_3_Addr"): Module_4_ADDR = kvs.GetSimple("module_4_Addr"): End Sub
M Mahares Expert Licensed User Longtime User Jun 19, 2015 #2 Did you try kvs.getobject instead of getsimple Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jun 19, 2015 #3 You can also check whether the key exists before trying to get the value: B4X: If kvs.ContainsKey ("module_1_Addr") Then ... Upvote 0
You can also check whether the key exists before trying to get the value: B4X: If kvs.ContainsKey ("module_1_Addr") Then ...