When ListPicker1.BeforePicking
set ListPicker1.Elements to BluetoothClient1.AddressesAndNames
When ListPicker1.AfterPicking
call BluetoothClient1.Connect address ListPicker1.Selection
set Label1.Text to "Connected to " + ListPicker1.Selection
When ListPicker1.BeforePicking
set ListPicker1.Elements to BluetoothClient1.AddressesAndNames
When ListPicker1.AfterPicking
call BluetoothClient1.Connect address ListPicker1.Selection
set Label1.Text to "Connected to " + ListPicker1.Selection
Use an if statement, because the Connect method returns a boolean true/false to indicate if the connection was successful or not, see also the documentation
If Connect
Then connection was successful
Else connection was not successful
Taifun
Can you help me assemble these blocks that I sent you?