tiredofit
Well-known Member
- Joined
- Apr 11, 2013
- Messages
- 1,924
- Office Version
- 365
- 2019
- Platform
- Windows
Is writing spaghetti code always bad?
Of the two approaches below, which is preferable, or should there be a better third approach?
Approach 1:
Approach2:
Thanks
Of the two approaches below, which is preferable, or should there be a better third approach?
Approach 1:
Rich (BB code):
If Condition1 Then
Do something1
Else
Do something2
End If
If Statement1 Then
Do something1
Else
Do something2
End If
Approach2:
Rich (BB code):
If Condition1 Then
GoTo A
Else
GoTo B
End If
If Statement1 Then
GoTo A
Else
GoTo B
End If
A:
Do something1
B:
Do something2
Thanks
Last edited: