The below code is checking files in a selected folder and uses the Java code I found here in the forum.
Why do I see the JavaObject contents as Items in the Log but not in the Listview?
Perhaps I'm doing something wrong, could someone point me how to fix this?
I do not have enough experience with B4J.
I am currently saving a list of arrays having multiple string items as a CSV like this:
1. Iterate over the list having arrays
2. Read array elements one by one
3. Create a string with array elements and commas in between
4. Add that string to new list...
I'm trying to get a JSON data to a dropdown B4Xcombobox, but not succeeding.
I also tried to change the maptoarray via a sub found on the forum.
Created the json parser via the online tool.
JSON is simple like...
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
i've this string
that represents some bytes.. how can i transform it in actual bytes?
i tried with for loops, byteconverter, arrays etc... nothing works like I need...
What is the equivalent in B4X?
Thanks in advance
memtable is list storing array at location Index
Dim StrArr() As List = memtable.get(Index)
lbheading.Text=StrArr(vheading) <-- causes java.lang.RuntimeException: Method: Get not found in: java.lang.Integer
vheading is integer with value 5
however watch expression...
I am trying to make a 2d array containing data like the following:
(("00", "01", "02"), ("10", "11"))
So that the 1st row will have 3 columns and the 2nd row will have 2. How would I do that?
Otherwise, is there a better way to group some arrays of different sizes together with indices?
These are for 1D arrays, type specific and stable sorts. There are 4 sets for Int, Double, Long and String arrays.
They are converted from C code I found here:
I had some trouble getting this to work, but thanks to Jordi CP, this has all been sorted.
I have an array of 24 buttons . If I give them identical event names in designer can I handle their click events in a single event handler . If so how do I pass the name of the button to this event handler so it can tell which button generated the event ?
Any help gratefully received
In working out using the ESP32 Camera (see tutorial here), I initially struggled with sending a buffer of data over 32KB using Astream.Write/Write2. For example, a picture taken by the camera at highest res (1600X1200 pixels) could easily be over 300KB. The camera returns a pointer to the...
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 am trying to make an activity with on a horizontal line 1 label and 3 text boxes. the label just contains a number. Of the 3 text boxes, two must be filled in. When a enter is given, the third will be filled in and three new textboxes will appear.
In the end, there will be a long...
Nice library but it needs a more detailed tutorial.
I tried to set the volume like this:
but I get an error telling me it expects an array. I have not used arrays yet so I found this example:
Creates a single dimension array of the specified type.
The syntax is: Array...
I must calculate 10 random numbers between 00 and 99 and populate an array with such ten numbers, but I need to take care that the final array do not contains duplicates values. Each element of the array must be an unique value between 00 and 99.
Exist some function (as in other...