[AccessD] Need help with return in a function

Kaup, Chester Chester_Kaup at kindermorgan.com
Thu Apr 28 12:55:56 CDT 2016


Came across a bit of code in a database and I don't understand what one line is supposed to do or how it is intended to work. I get a syntax error of
"Expected end of statement"  The line in question is return Len(Dir$(aFile)) >0. Thanks for the assistance.

Here is the whole function

Function Delete_File(aFile)
    Dim B As String
    On Error Resume
    Kill aFile
    On Error GoTo 0
    return Len(Dir$(aFile)) > 0         ' Make sure it actually got deleted.
End Function


More information about the AccessD mailing list