'Example from the Aeric's
'Changing InputListTobeInputListAsync
'The old code
' Dim Res As Int
' Res = InputList(l, "Choose a printer", -1) 'show list with paired devices
' If Res <> DialogResponse.CANCEL Then
' Serial1.Connect(PairedDevices.Get(l.Get(Res))) 'convert the name to mac address
' Return True
' End If
'-----------------------------------------------------------------------------
'The new code
InputListAsync(l, "Choose a printer", 0, False)
Wait For InputList_Result (Res As Int)
If Res <> DialogResponse.CANCEL Then
Serial1.Connect(PairedDevices.Get(l.Get(Res))) 'convert the name to mac address
Return True
End If