B
Brian
This has got to be about the least important question ever asked, but here
goes.
Is there a way to indent labels? I indent sections of code within procedures
to make it easier to follow the logic, like this, where I can easily spot the
If...Then loops, etc:
Private Sub DoSomething()
'Do first thing
If abc = 1 Then
If xyz = 1 Then
Docmd.DoOneThing
GoTo GoHere
Else
Docmd.DoSomeOtherStuff
End If
Else
Docmd.DoSomethingElse
End If
'Do next thing
Exit Sub
'post-processing
GoHere: 'this line should be indented
Docmd.Whatever
Docmd.Whatever2
Labels are apparently always left-justified, so there is no way I can see to
get them indented to help keep them logically grouped.
goes.
Is there a way to indent labels? I indent sections of code within procedures
to make it easier to follow the logic, like this, where I can easily spot the
If...Then loops, etc:
Private Sub DoSomething()
'Do first thing
If abc = 1 Then
If xyz = 1 Then
Docmd.DoOneThing
GoTo GoHere
Else
Docmd.DoSomeOtherStuff
End If
Else
Docmd.DoSomethingElse
End If
'Do next thing
Exit Sub
'post-processing
GoHere: 'this line should be indented
Docmd.Whatever
Docmd.Whatever2
Labels are apparently always left-justified, so there is no way I can see to
get them indented to help keep them logically grouped.