This is a example I was just given.
Ive seen people do this twice now.

VB Code:
  1. Private Function FileExists(FullFileName As String) As Boolean
  2. On Error GoTo MakeF
  3. 'If file does Not exist, there will be an Error
  4. Open FullFileName For Input As #1
  5. Close #1
  6. 'no error, file exists
  7. DoExists = True
  8. Exit Function
  9. MakeF:
  10. 'error, file does Not exist
  11. DoExists = False
  12. Exit Function
  13. End Function

The last 2 lines dont make sense to me...

Exit function
End Function

Why exit the function when its ending anyway???