I’m using a dictionary a couple of times in my projects and never had a problem.
Now there is something strange.If I save a dictionary value to a variable and use in an IF statement, or select statement, it never runs through the IF or select case “ABC” part.
using version 2020r2
var sValue as string
sValue = dictionary.value(key)
if sValue = “ABC” then
… // it never gets processed
else
…
end if
------------ OR
select case sValue
case “ABC”
… // it never gets processed
case else
…
end select
it does not process the IF part or the case “ABC” , even in debugger, I can see sValue is set to “ABC”
BUT if I’m saying
sValue = “ABC” then it works fine
can anybody explain that ?