TelKel81 Active Member Licensed User Jul 29, 2019 #1 Ex: B4X: Dim myLife as Map (As yearstring, As Wine) If myLife.Get("2019").IsTonsOfWine = True Then... Because I haven't found any with the IDE or in the forums. That would be a huuuuuuuuuuuuuuuuuuuuuuuge time saver I believe. Thanks !
Ex: B4X: Dim myLife as Map (As yearstring, As Wine) If myLife.Get("2019").IsTonsOfWine = True Then... Because I haven't found any with the IDE or in the forums. That would be a huuuuuuuuuuuuuuuuuuuuuuuge time saver I believe. Thanks !
Erel B4X founder Staff member Licensed User Longtime User Jul 29, 2019 #2 No. However you can create a helper sub: B4X: Sub GetWine (Year As String) As Wine Return myLife.Get(Year) End Sub (or pass the map as the first parameter if there are several maps) B4X: If GetWine("2019").IsGood Then Upvote 0
No. However you can create a helper sub: B4X: Sub GetWine (Year As String) As Wine Return myLife.Get(Year) End Sub (or pass the map as the first parameter if there are several maps) B4X: If GetWine("2019").IsGood Then
DonManfred Expert Licensed User Longtime User Jul 29, 2019 #3 B4X: Dim myLife as Map = CreasteMap(yearstring:Wine) Upvote 0