Vader Well-Known Member Licensed User Longtime User Jan 16, 2013 #1 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: Code: Copy Private Sub ConnectToPairedDevice If PairedMACAddress <> "" Then Log("Connecting to specified device") Port.Connect(PairedMACAddress) 'Attempt Connection End If End Sub Last edited: Jan 16, 2013
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: Code: Copy Private Sub ConnectToPairedDevice If PairedMACAddress <> "" Then Log("Connecting to specified device") Port.Connect(PairedMACAddress) 'Attempt Connection End If End Sub
Erel B4X founder Staff member Licensed User Longtime User Jan 16, 2013 #2 I see it too. Thank you for reporting it.