This is a example I was just given.
Ive seen people do this twice now.
VB Code:
Private Function FileExists(FullFileName As String) As Boolean On Error GoTo MakeF 'If file does Not exist, there will be an Error Open FullFileName For Input As #1 Close #1 'no error, file exists DoExists = True Exit Function MakeF: 'error, file does Not exist DoExists = False Exit Function End Function
The last 2 lines dont make sense to me...
Exit function
End Function
Why exit the function when its ending anyway???




Reply With Quote