Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Nesting
#1
Great tutorial dude.. I would just like to add to this very good tutorial is that adding spaces between certain lines of code helps distinguish between certain sections.. Adding spaces is just something i do, i dont know anyone else who does it.. But it does help dramatically.. For example.. Sorry Verrigan im using one of your examples here..

Declaring Variables In a Procedure
Code:
Private Sub cmdSelectChar_Click()
    Dim YesNo As Byte

    'Your code goes here. (Yes, you should even nest your comments. :))
End Sub

I think nesting is considered good programming practice.. I cant remember the exact words my teacher used.. But yeah.. Something like that.. :wink:

Again, great tutorial mate..
Reply
#2
I can honestly say I hate trying to fix someone elses code when they don't nest. Or if their nesting is just a single space...

Very nice, I hope most people will carryout nesting in any type of programming or scripting.


[Also, I leave blank lines between Dims, SelectCase blocks, IfElseThen Blocks, after Sub and before End Sub]
Reply
#3
Maybe if you email Google about that, they'll fix it. They're pretty user orientated on things like that, so they may listen. GTalk owns all.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)