F fsikkerm Member Licensed User Longtime User Mar 15, 2017 #1 Hi Guys Just some weird behaviour or is just me? after a request to a site i get json back and store it in map parser.Initialize(res) AllData = parser.NextArray 'returns a list with maps Some where else in the code : Dim tmpmap as map tmpmap.Initialise TmpMap=AllData.Get(2) If TmpMap.Get("Enddate") = "null" Then '<==== Works in debug mode but not in release ' dosomething Endif In release has to be: If TmpMap.Get("Enddate") = Null Then '<==== No string ' dosomething Endif Any tips suggestions ?
Hi Guys Just some weird behaviour or is just me? after a request to a site i get json back and store it in map parser.Initialize(res) AllData = parser.NextArray 'returns a list with maps Some where else in the code : Dim tmpmap as map tmpmap.Initialise TmpMap=AllData.Get(2) If TmpMap.Get("Enddate") = "null" Then '<==== Works in debug mode but not in release ' dosomething Endif In release has to be: If TmpMap.Get("Enddate") = Null Then '<==== No string ' dosomething Endif Any tips suggestions ?
eps Expert Licensed User Longtime User Mar 15, 2017 #2 Are you stepping through the debug execution? It might be that something is happening out of order when debugging.. Maybe try logging info. to the console. Or wait for @Erel who might know if the reason - but they should be the same. Which version of B4A are you using? Upvote 0
Are you stepping through the debug execution? It might be that something is happening out of order when debugging.. Maybe try logging info. to the console. Or wait for @Erel who might know if the reason - but they should be the same. Which version of B4A are you using?
Erel B4X founder Staff member Licensed User Longtime User Mar 16, 2017 #3 Please use [code]code here...[/code] tags when posting code. It should be Null instead of "null". Does Null work in debug mode? Upvote 0
Please use [code]code here...[/code] tags when posting code. It should be Null instead of "null". Does Null work in debug mode?
F fsikkerm Member Licensed User Longtime User Mar 16, 2017 #4 I'm using 6.80 I think i messed up.. "null" works also in release but gives wrong result ( of course ) Thx for the feedback.. Upvote 0
I'm using 6.80 I think i messed up.. "null" works also in release but gives wrong result ( of course ) Thx for the feedback..