Unlike most (it seems), I prefix all of my Subs with Private or Public.
I also like to collapse these when I'm not actively writing (duh!
) or debugging them.
However, if you have Public or Private in front of the Sub, when you collapse it, the displayed Region is now not displayed correctly.
Without a screenshot it's hard to describe, but try it and you will see imediately what I mean.
Use this and collapse it:
I also like to collapse these when I'm not actively writing (duh!
However, if you have Public or Private in front of the Sub, when you collapse it, the displayed Region is now not displayed correctly.
Without a screenshot it's hard to describe, but try it and you will see imediately what I mean.
Use this and collapse it:
B4X:
Private Sub ConnectToPairedDevice
If PairedMACAddress <> "" Then
Log("Connecting to specified device")
Port.Connect(PairedMACAddress) 'Attempt Connection
End If
End Sub
Last edited: