Home | Advertising Info75 USERS CURRENTLY ONLINE   
   Site Search Contact Us Thursday, October 02, 2014  
 
 


 
ASPProtect
User Management Application with web based screens that allow you to manage users.
www.ASPProtect.com
 
ASPBanner
Banner Rotation system. Advertisers can monitor online statistical reports via their web browsers.
www.ASPBanner.com
 
ASP Photo Gallery
Upload an unlimited amount of albums. Set up categories.Image resizing thumbnail creation.
www.ASPPhotoGallery.com
 
ASPClassifieds
Classifieds system. Set up categories. Users can register themselves. Supports picture uploads.
www.ASPClassifieds.com



DISCUSSION ARCHIVES
 
Try a free httpZip trial now and compress for less!


We didn't realize
the site was so popular.

Other Stuff
 

 
 
vbscript active server pages ASP vbscript SQL database informix oracle SQL Server Perl CGI Delphi PHP source code code sample samples program CJWSoft ASPProtect ASPBanner ASPClassifieds



(Advanced)  (Components)  (Database)  (General)  (Vbscript)




ASPProtect

 
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


 

   Active Server Pages Rule The World
Contact Us  
All artwork, design & content contained in this site are Copyright 1998 - 2014 PowerASP.com and Christopher J. Williams
Banner ads ,other site logos, etc are copyright of their respective companies.
STATS Unless otherwise noted - All Rights Reserved.

Active Server Pages ASP ASP.NET .aspx .ascx Web HTML Developer Internet Microsoft Web Services Visual Studio .NET CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspclassifieds.com, www.powerasp.com,www.cjwsoft.com,www.aspphotogallery.com,www.codewanker.com,www.aspprotect.com,www.aspbanner.com