Spurious use of goto...
The Weird and The Wonderful
2
Posts
2
Posters
0
Views
1
Watching
-
A true gem...
If CurrentContext = "D" Then GoTo c45
GetUserDataRecord aForm
c45:
There were no other ref's to c45, so replaced by...
If CurrentContext <> "D" Then GetUserRecord aForm
Further down in same procedure:
GoSub ResolveTabOrder ' Other code here Exit Function
ResolveTabOrder:
If uControlNbr < 2 Then Return ' More code here GoTo ResolveTabOrder
End Function
-
A true gem...
If CurrentContext = "D" Then GoTo c45
GetUserDataRecord aForm
c45:
There were no other ref's to c45, so replaced by...
If CurrentContext <> "D" Then GetUserRecord aForm
Further down in same procedure:
GoSub ResolveTabOrder ' Other code here Exit Function
ResolveTabOrder:
If uControlNbr < 2 Then Return ' More code here GoTo ResolveTabOrder
End Function