|
|
|
|
|
| | |
|
Active Server Pages what is asp programming how to sample asp example code scripts software asp forum mail sessions applications global.asa CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
Subject: |
Re: EOF/BOF problem |
From: |
harlan |
Date: |
2/16/1999 3:56:55 PM |
IP: |
206.222.20.2 |
couple things, most relating to error checking, not your spacific error.
Also, I would use a select case statment not ifs its faster, and better looking.. example:
select case trim(class("type"))
case "type1"
`this is the same as..
`if trim(class("type")) = "type1" then
case "typelast"
case else
end select
now for the error.. first you should probably trap the error.
if class.EOF and class.BOF then
response.write "no records found"
else
.. do while loop here..
end if
for debug purposes, you might want to do something like instead of
response.write "no records found" do response.write "query: " & query & "<br>"
and then run the query in whatever database your in, and make sure the
query is correct. If it is, make sure the case your looking for
"type1" is the same as what is returned "Type1" if is case sensitive, so
is select case. you may want to lcase() it all before your check.
select case lcase(trim(class("type")))
case "type1"
... stuff here..
end select
if that doesnt help.. do response.writes all over your code, and walk threw it. |
Previous Message
Follow Up - Re: EOF/BOF problem - Honna 2/17/1999 5:10:11 PM
|
|

|
|
|
|
|
|
|
|
|
|