[thelist] ASP Problem - Pulling schedules items in a loop?

Tab Alleman talleman at Lumpsum.com
Mon Jun 4 08:22:03 CDT 2007


I can tell you that any time you mix AND and OR, you should use parens because

(a AND b) OR c

is totally different from

a AND (b OR c)


> -----Original Message-----
> From: thelist-bounces at lists.evolt.org
> [mailto:thelist-bounces at lists.evolt.org]On Behalf Of Ken Schaefer
> Sent: Saturday, June 02, 2007 1:39 AM
> To: thelist at lists.evolt.org
> Subject: Re: [thelist] ASP Problem - Pulling schedules items 
> in a loop?
> 
> 
> Hi Jon,
> 
> Could you explain exactly what you're trying to accomplish? 
> When you say "how
> do I pull ALL of these?" - all of what, exactly?
> 
> Cheers
> Ken
> 
> -----Original Message-----
> From: thelist-bounces at lists.evolt.org
> [mailto:thelist-bounces at lists.evolt.org] On Behalf Of Jon Hughes
> Sent: Saturday, 2 June 2007 9:50 AM
> To: thelist at lists.evolt.org
> Subject: [thelist] ASP Problem - Pulling schedules items in a loop?
> 
> I have the following code in my schedule .asp file:
> 
> startdate=DateValue("5/29/2007")
> enddate=DateValue("5/30/2007")
> if date() >= StartDate and date() <= EndDate or showall = "1" then
> imgLink = "http://www.mysite.com/mylink1.asp"
> imgSrc = url & "img/this.jpg"
> end if
> 
> startdate=DateValue("5/31/2007")
> enddate=DateValue("6/1/2007")
> if date() >= StartDate and date() <= EndDate or showall = "1" then
> imgLink = "http://www.mysite.com/mylink2.asp"
> imgSrc = "img/that.jpg"
> end if
> 
> These are obviously scheduled in another file that displays 
> the one that
> is currently active.
> 
> My questions is: How do I pull ALL of these?  I was hoping by having
> that "or showall = "1"" would help, but even with showall, it 
> will just
> overwrite the variables.
> 
> 
> One thing:  I don't want to use different variables for each entry.
> There are MANY entries.
> 
> Thanks,
>  
> -- 
> 
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
> 
> For unsubscribe and other options, including the Tip Harvester 
> and archives of thelist go to: http://lists.evolt.org 
> Workers of the Web, evolt ! 
> 



More information about the thelist mailing list