More a B4A question, than MobileVision, but I want to use MobileVision to parse multiple barcodes. I can see the data when it is written to the log, but I cant work out how to get at the elements I want, specifically displayValue, which contains the barcode itself. Here's how I thought it would work.
Here's the
As I understand it, the result is a list of Map elements. I just want to parse out each barcode. When it gets to l=result... the program just ends, with nothing written to the log.
Thanks in advance.
Colin
Here's the
B4X:
Sub Barcode_onBarcodeResult(success As Boolean, info As String, result As List)
If (success=True) Then
For forcount=0 To result.Size-1
Dim l As Map
l.Initialize
l=result.Get(forcount)
Log(l.Get("displayValue"))
Next
Else
End If
End Sub
As I understand it, the result is a list of Map elements. I just want to parse out each barcode. When it gets to l=result... the program just ends, with nothing written to the log.
Thanks in advance.
Colin