CreateMapCreates a Map with the given key / value pairs.The syntax is: CreateMap (key1: value1, key2: value2, ...) Example: Dim m As Map = CreateMap("January": 1, "February": 2) B4J Question [B4X] CreateMap and Null values - LucaMs    Feb 1, 2022 I found that CreateMap accepts Null values as well, like so:
MyMap = CreateMap("Value"...
Return CreateMap("Value":Value)
End Sub
I would get an error: java.lang... B4A Question Map Collection - The most useful collection... - Erel    Nov 12, 2015   (21 reactions)   tags: Maps, MapColl .Put(2, "Monday") Log(days.Get(1)) You can also use CreateMap as a shorthand: Dim days As Map = CreateMap(1: "Sunday", 2: "Monday") Log(days.Get(1)) Iterating over the items is done with the For Each iterator: Dim days As Map = CreateMap(1: "Sunday", 2...) are important. For example: Dim map1 As Map = CreateMap("A": 1, 2: "B") Log(map1.Get... B4A Question CLV , CreateMap - How i can get the specific Values - somed3v3loper (first post)    Jun 12, 2019   (1 reaction) I am not sure I understand your problem but this lists all keys and values
For Each k In mapaEscalonado.Keys
Log(k& " = "&mapaEscalonado.Get(k))
Next... Other jServer v2.05 - Erel    Mar 1, 2021   (4 reactions) This update adds a new method: Server.SetStaticFilesOptions. This method accepts a Map with configuration parameters that affect the way the server serves static files. For example: srvr.SetStaticFilesOptions(CreateMap("cacheControl": "max-age=3600")) The list of parameters is available here: http://download.eclipse.org/jetty/9.4.2.v20170220/apidocs/org/eclipse/jetty/servlet/DefaultServlet.html... Share My Creation JQuiz - API Server for B4XQuiz - aeric    May 18, 2023   (14 reactions) As String(uid, pwd)) Dim Map2 As Map = CreateMap("register": 1) Utility... Map2 As Map = CreateMap("login": 1) Utility.ReturnSuccess(Map2, Response... Do While res.NextRow List2.Add(CreateMap("id": res.GetInt("id"... List2.Add(CreateMap("id": res.GetInt("id"), _ "topic...(ans) Loop If qid > 0 Then Questions.Add(CreateMap("qid": qid... Share My Creation [BANanoVuetifyAD3] Organogram Lite FireBase WebApp Source Code @ $11 - Mashiane    Jul 4, 2021   (8 reactions) the nodes organogram.ClearNodes Dim extraData As Map = CreateMap() extraData.Put... As Map = CreateMap() extraData3.Put("color", vuetify.COLOR_INDIGO) organogram..., extraData3) ' 'add developers Dim extraData1 As Map = CreateMap() extraData1.Put...", extraData1) Dim extraData2 As Map = CreateMap() extraData2.Put("color"... B4A Library OkHttp - Replaces the Http library - Erel    Mar 14, 2018   (22 reactions)   tags: Webservices ("http://...", CreateMap("param1": "value1"), Array(fd)) OkHttp and... B4A Library [B4X] CLVSwipe - xCustomListView Swipe actions and pull to refresh - Erel    Apr 1, 2021   (47 reactions)   tags: CLVSwipe, CLVSwipe - CustomListView, xuiCLV, xclv swipe pull, clv, myapp .ActionColors = CreateMap("Delete": xui.Color_Red, "Do Something Else": xui... B4A Tutorial Convert collections to json and vice versa - Erel    Mar 27, 2022   (30 reactions) The JSON libraries, which are internal libraries, were updated. The new version is 1.20. There is a new JSON type which is used to convert maps or lists to json strings and vice versa, using the new As keyword. The idea is that you have a collection or string, you direct the compiler to treat it as "JSON" and then convert it to a string or a collection. It looks like this: Dim m As Map = CreateMap("asdasd": Array(1, 2, 3, 4)) Dim s As String = m.As(JSON).ToString... B4A Example [B4X] Supabase - Database CRUD - Alexander Stolte    Jan 9, 2024   (15 reactions) ) Dim InsertMap As Map = CreateMap("Tasks_Name":"Task 01","Tasks_Checked... lst_BulkInsert.Add(CreateMap("Tasks_Name":"Task 02","Tasks_Checked":True....TicksToString(DateTime.Now))) lst_BulkInsert.Add(CreateMap("Tasks_Name":"Task 03"...) Query.Filter_Equal(CreateMap("Tasks_Name":"Task 02")) Wait For (Query...("dt_Tasks") Update.Update(CreateMap("Tasks_Name":"Task 02")) Update.Eq... Page: 1   2   3   4   5   6   7   |