borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Registering DLL files via setup)Next Topic (Register DLLs on Multi-user PC) New Topic New Poll Post Reply
AndreaVB Forum : ActiveX : vbscript code & ASP
Poster Message
djsam
Level: Trainee

Registered: 24-05-2005
Posts: 1

icon vbscript code & ASP

I'm trying to incorporate this piece of code in an ASP file to display some information but it keeps crashing with msg:

Microsoft VBScript runtime error '800a000d'
Type mismatch: 'FolderExists'

This is the code:

<SCRIPT LANGUAGE="VbScript">
Function FolderExists(ByVal strPath As String) As Boolean
    Dim s As String
        
     If Right(strPath, 1) = "\" Then strPath = Left(strPath, Len(strPath) - 1)
     s = Dir(strPath, vbDirectory)
    If s <> "" Then FolderExists = True
End Function
</SCRIPT>

Then calling the function later in ASP file (code)...

If FolderExists(FolderContent) then
response.write "test folder exist"
end if

Any assistance will be appreciated.

24-05-2005 at 08:52 PM
View Profile Send Email to User Show All Posts | Quote Reply
Goran
Level: Moderator

Registered: 16-05-2002
Posts: 1681
icon Re: vbscript code & ASP

In ASP/VBScript there is only one datatype - Variant.

____________________________
If you find the answer helpful, please mark this topic as solved.

25-05-2005 at 04:47 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : ActiveX : vbscript code & ASP
Previous Topic (Registering DLL files via setup)Next Topic (Register DLLs on Multi-user PC) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder