Hi
I am reading values from a db and it seems the saved db value is null. I am using .GetDefault, expecting that if the value is null, it will return the default value.
I was doing a lowercase to the value however its raising an erorr.
The error is raised here...
This is what appears on my console.log when I check the values..
Thanks
I am reading values from a db and it seems the saved db value is null. I am using .GetDefault, expecting that if the value is null, it will return the default value.
I was doing a lowercase to the value however its raising an erorr.
B4X:
Dim shidden As String = fld.GetDefault("hidden", "No")
The error is raised here...
B4X:
If shidden.EqualsIgnoreCase("yes") Then
elOpt.Put("x-display", "hidden")
End If
B4X:
Uncaught (in promise) TypeError: Cannot read property 'equalsIgnoreCase' of null
This is what appears on my console.log when I check the values..
Thanks