Thanx Anup

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 37365
interpreted = N
texte = on 7/24/01 9:03 AM, Anup Setty at asetty@vertical.net wrote:> You can not use [numfound] with in a [founditems] loop. > If you need to use the value of [numfound] within the [founditems] loop > for some reason, you have to assign the [numfound] value before > starting the [founditems] loop. I usually do this by using a variable > [text]theNumfound=[numfound][/text] > > Regards > Anup > > > ----- Original Message ----- > From: Rudy > To: WebCatalog Talk > Sent: Tuesday, July 24, 2001 9:06 AM > Subject: little help > > >> A search is conducted. >> >> [search db=somedatabase.db . . . etc.] >> [founditems] >> [showif [numfound]=0] >> BLAH >> [/showif] >> [showif [numfound]!0] >> BLAH >> [/showif] >> [/founditems] >> [/search] >> >> Now when I test for both circumstances, the first showif circumstance (the >> one numfound =0) doesn't appear and doesn't work, but the second >> circumstance does. When the founditems tags are removed, the first >> circumstance works, but the second one does not. So I solved the problem > by >> doing this. >> >> [search db=somedatabase.db . . . etc.] >> [showif [numfound]=0] >> BLAH >> [/showif] >> [showif [numfound]!0] >> [founditems] >> BLAH >> [/showif] >> [/founditems] >> [/search] >> >> Remember that I'm the new guy here. I'd like to know why my problem > occurred >> and whether my solution to it is valid. Thanx in advance . . . >> >> ------------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> To switch to the DIGEST mode, E-mail to > >> Web Archive of this list is at: http://search.smithmicro.com/ > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://search.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Thanx Anup (Rudy 2001)
on 7/24/01 9:03 AM, Anup Setty at asetty@vertical.net wrote:> You can not use [numfound] with in a [founditems] loop. > If you need to use the value of [numfound] within the [founditems] loop > for some reason, you have to assign the [numfound] value before > starting the [founditems] loop. I usually do this by using a variable > [text]theNumfound=[numfound][/text] > > Regards > Anup > > > ----- Original Message ----- > From: Rudy > To: WebCatalog Talk > Sent: Tuesday, July 24, 2001 9:06 AM > Subject: little help > > >> A search is conducted. >> >> [search db=somedatabase.db . . . etc.] >> [founditems] >> [showif [numfound]=0] >> BLAH >> [/showif] >> [showif [numfound]!0] >> BLAH >> [/showif] >> [/founditems] >> [/search] >> >> Now when I test for both circumstances, the first showif circumstance (the >> one numfound =0) doesn't appear and doesn't work, but the second >> circumstance does. When the founditems tags are removed, the first >> circumstance works, but the second one does not. So I solved the problem > by >> doing this. >> >> [search db=somedatabase.db . . . etc.] >> [showif [numfound]=0] >> BLAH >> [/showif] >> [showif [numfound]!0] >> [founditems] >> BLAH >> [/showif] >> [/founditems] >> [/search] >> >> Remember that I'm the new guy here. I'd like to know why my problem > occurred >> and whether my solution to it is valid. Thanx in advance . . . >> >> ------------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> To switch to the DIGEST mode, E-mail to > >> Web Archive of this list is at: http://search.smithmicro.com/ > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://search.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Rudy

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Multi Actions (1999) A little help on e-mail (HELP!!! :-) ) (1998) Quit revisited (1997) WebCatalog2 for NT Beta Request (1997) Nested tags count question (1997) WebCat2 beta 11 - new prefs ... (1997) Date problems (1997) no global [username] or [password] displayed ... (1997) Initiating NewCart (1997) Unexpected comparison behavior change in 4.5.1 (2003) protect acting looney?? (2003) Sort on time (2003) WebCat2: multiple currency support (1997) server2003 issue (OT) (2006) Image upload (2000) Change extension (2000) Calendar using WebCatalog? (1997) Sandboxes (2004) WebDNA 5.1 is now available! (2003) Summary search -- speed (1997)