Warden Posted July 16, 2011 Author Share Posted July 16, 2011 Hello,i edited the script and added some things in it,now when i wanted to run it,it gives me error "bad file name or number" and shows me the line:> Public Function FileExist(ByVal Filename As String, Optional RAW As Boolean = False) As Boolean> ' If debug mode, handle error then exit out> If Options.Debug = 1 Then On Error GoTo errorhandler> > If Not RAW Then> this line –----------> If LenB(Dir(App.Path & "\" & Filename)) > 0 Then> FileExist = True> End If> > Else> > If LenB(Dir(Filename)) > 0 Then> FileExist = True> End If> End If> > ' Error handler> Exit Function> errorhandler:> HandleError "FileExist", "modDatabase", Err.Number, Err.Description, Err.Source, Err.HelpContext> Err.Clear> Exit Function> End Functionbut i even havent touched this line,so can anyone tell me what may be the problem?(i can send the full code if someone can help me,i really need help :( ) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now