In real apps you usually don't want to detect all formats. The detector will work better if you set it to the specific formats that you are looking for.
In real apps you usually don't want to detect all formats. The detector will work better if you set it to the specific formats that you are looking for.
Thinking about it, even though I haven't had a coffee yet ? , that's an example. At the very least there might be a spinner filled with formats.
This makes me think of a question... which as a good member of B4X.com I don't post here.
P.S. Indeed, I have to look first, perhaps the example project already does what I was thinking.
Well, I won't open a new thread because I don't need the answer, it was just a curiosity.
I would have liked to see if I could get the format, as well as the value.
Oddly that Maches variable which indicates the size of that sparse array returns 1 but if you log the "toString" method the values are more (but they don't contain the name of the format).
I thought about asking for the list of keys but... ok, it doesn't matter, it was just curiosity.
Dim FormatField As Object = barcode.GetField("format")
If FormatField <> Null Then
Log(FormatField & " " & mapFormats.Get(FormatField))
Else
Log("format field is null")
End If