Private Sub FoundBarcode (msg As String)
lblResult.Text = msg
Wait For (dialog.Show($"Found [Color=Blue][b][plain]${msg}[/plain][/b][/Color]"$, "OK", "", "Close the page"))complete(intResult As Int)
If intResult=xui.DialogResponse_Cancel Then
B4XPages.ClosePage(Me)
End If
End Sub