I am talking about command try - catch
Which code is faster? For example:
Imagine i have to check 1000 keys for existence.
Which code is faster? For example:
B4X:
try
val = mymap.get("Not_existing_Value")
catch
log(LastException)
end try
' Or
if mymap.ContainsKey("Value") then val = mymap.get(value)
Imagine i have to check 1000 keys for existence.
Last edited: