Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


class statement error

 
Logged in as: Guest
arrSession:exec spGetSession 2,3,634
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> ASP >> class statement error
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 class statement error - 6/13/2002 2:49:48 AM   
  DSonic

 

Posts: 1
Score: 0
Joined: 6/13/2002
From: Germany
Status: offline
I get the following error when using the class statement within my ASP Code:

----------------
Kompilierungsfehler in Microsoft VBScript- Fehler '800a03ea'

Syntaxfehler

/community/forum/ofdb.asp, line 9

Class f_DBClass
^
----------------

It's german but all it says is that there is a syntaxerror when compiling in line "Class f_DBClass"!?

The Code looks as the following:

----------------
Class f_DBClass

public sub Class_Initialize()
call OpenForumConn
end sub

public sub Class_Terminate()
call CloseForumConn
end sub

public function f_GetRS(f_sSQL)
dim f_rsOfTemp

set f_rsOfTemp = Server.CreateObject("ADODB.Recordset")
set f_rsOfTemp.ActiveConnection = f_Conn

f_rsOfTemp.CursorLocation = 3 'adUseClient
f_rsOfTemp.CursorType = 3 'adOpenStatic
f_rsOfTemp.Open f_sSQL,,, 2 'adCmdTable

set f_GetRS = f_rsOfTemp
set f_rsOfTemp = nothing
end function

End Class
----------------

Can anyone help?
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> ASP >> class statement error Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts