Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

class statement syntaxerror

Status
Not open for further replies.

DSonic

Programmer
Jun 13, 2002
2
DE
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?
 
what do lines 1-8 look like? codestorm
Fire bad. Tree pretty. - Buffy
select * from population where talent > 'average'
<insert witticism here>
 
There is nothing than blank lines and a &quot;Dim f_Conn&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top