public Sub mapToArray(m As Map) As Object()
Dim arr(m.Size * 2) As Object 'array size is double of the map because both keys and values are elements
Dim i As Int=0
Dim value As Object
For Each key As Object In m.Keys
Salve a tutti
Da un po' di tempo sto riscontrando problemi con il recupero di dati da una Map. https://www.b4x.com/android/forum/threads/map-collection-the-most-useful-collection.60304/
Come da prassi (mia) ho lasciato "riposare" il problema, di tanto in tanto lo riprendevo in mano pensando che...
This b4Xlib contains a custom view (cvMap) which can display Open Street Map.
The tiles are retrieved from the internet and cached in a database. You can add shapes and images on the map.
- Lat/lng Center of the map
- Zoom Level
- Compass Direction with rotation
Dispongo di una mappa, tipo esempio JGoogleMap
Due o piu' marker dentro
Come fare per avere uno zoom al massimo possibile compatibilmente con la visualizzazione dei marker dentro la mappa?
Il classico auto-extend dei programmi cad o funzione simile per capirci
Hello everyone, firstly I have to tell you that I'm a beginner so please, be patient.
Here is my problem, in my code, I have a map and I need to a sum with these values. Here is my code
NewArt.Put("nombre","Harina COLOLO 0000 1kg.")...
Probably a beginner problem. but i can't get a list in map after Write it and Read again. i get this error message:
java.lang.ClassCastException: java.lang.String cannot be cast to java.util.List
Dim mapSetting As Map
Dim List1 As List...
' UrlEncodeMap(input As Map) As String
' Converts a Map's keys/values to a URL encoded parameter string
' Following library is used
' B4J - jStringUtils
' B4A - StringUtils
' B4i - iStringUtils
Sub UrlEncodeMap(input As Map) As String
Dim sb As StringBuilder
Dim su As StringUtils...
Test project attached (its design also is strange, but it is similar to my real project).
Error occurred on line: 37 (Main)
Line 37 is an empty line.
I made 7 examples how to exchange data between B4x apps and php. I use the POSTSTRING method as it is simple, secure (get-methods will be logged with the data autmatically on the server, post-methods not), strings can be formatted very easy (JSON) and en-/decrypted (not included but see my other...
B4J Version: 7.51
OS Platfrom: Win10 Pro (1903)
JDK: 11.0.1 downloaded from B4X's site
Here's the setup. I'm creating a list of maps that contain x, y values (note: in my case, the map contains way more info, I'm just simplifying it here to show the issue I'm running into)
Dim largestX As...
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.
I've used the map collection storing "Type Object" values many times without issue and then hit a problem yesterday trying to store(put) a Type object into a B4XOrderedMap. It also fails with a standard Map... Hence I suspect a dumbass programming error :confused:
So I declare a type...
I need to get the values that are mapped and do a routine to assign these values in a normal lstview.
but I always return the last value in the index.
and also I did not understand how I can pull the keys of the created map and assign to the item of the listview.
'dim mapaEscalonado as map...
This is a module code to retrieve value from complex structure (combination of list, map, array and primitives types).
Give the path with a dot (.) separator to get the value or the default value if not accessible.
example : m=createmap("Name":"John" ,"Friends":array as...
I have a simple question.
Dim mapGlobal As Map
Does the "=" the pass the reference of the mapGlobal to map2 or creates an object at new memory location?