getifexists

  1. LWGShane

    Other [B4X] GetIfExists for Map [Map.Get already does this]

    Here's a little piece of code that allows you to get a Key from the provided map. If the map doesn't contain the key then it'll return null. Private Sub GetIfExists (SourceMap As Map, Key As Object) As Object If SourceMap.ContainsKey(Key) Then Return SourceMap.Get(Key) Else...
Top