Re: FoundItems and punctuation

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 28940
interpreted = N
texte = I'd try it like this: Within the subcategory search, add a counter. When the item number = NumFound, use a semicolon instead of the comma.[search number 1] [founditems] [math show=F]SubCatCounter=0[/math] [search number 2] [founditems] [math show=F]SubCatCounter=[SubCatCounter]+1[/math] [subcategory][showif [SubCatCounter]![numfound]],[/showif][hideif [SubCatCounter]![numfound];[/hideif] [/founditems] [/search] [/founditems] [/search]---------------Andy Willett, Senior TechnicianBeta Unlimited: Business Workgroup Solutions andy@betau.com 212-685-1886> From: Rodolfo > Reply-To: (WebCatalog Talk) > Date: Mon, 13 Mar 2000 10:55:39 -0600 > To: (WebCatalog Talk) > Subject: FoundItems > > Hi there, > I need to find categories an subcategories, but I need to be ordered like > this: > > Category1 > subcategory1, > subcategory2, > subcategory3; > Category2 > subcategory1, > subcategory2, > subcategory3; > > at the end of each set of subcategories I need to put a semicolon instead od > a comma. > Right now I have something lika this: > > [search > db=database.db&grSKUdata=0&categorysumm=t&categorysort=1][founditems][catego > ry] > [search > db=database.db&eqcategorydatarq=[category]&subcategorysumm=t&subcategorysort > =1][founditems][subcategory], > [/founditems];[/search] > [/founditems] > [/search] > > The result of this is: > > Category1 > subcategory1, > subcategory2, > subcategory3,; > Category2 > subcategory1, > subcategory2, > subcategory3,; > > How can I take away the last comma and insert the semicolon instead? > Any Idea? > Thanks > -Rodolfo de la Garza > > > ------------------------------------------------------------- > 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 > ------------------------------------------------------------- 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 Associated Messages, from the most recent to the oldest:

    
  1. Re: FoundItems and punctuation (Rodolfo 2000)
  2. Re: FoundItems and punctuation (Andy Willett 2000)
I'd try it like this: Within the subcategory search, add a counter. When the item number = NumFound, use a semicolon instead of the comma.[search number 1] [founditems] [math show=F]SubCatCounter=0[/math] [search number 2] [founditems] [math show=F]SubCatCounter=[SubCatCounter]+1[/math] [subcategory][showif [SubCatCounter]![numfound]],[/showif][hideif [SubCatCounter]![numfound];[/hideif] [/founditems] [/search] [/founditems] [/search]---------------Andy Willett, Senior TechnicianBeta Unlimited: Business Workgroup Solutions andy@betau.com 212-685-1886> From: Rodolfo > Reply-To: (WebCatalog Talk) > Date: Mon, 13 Mar 2000 10:55:39 -0600 > To: (WebCatalog Talk) > Subject: FoundItems > > Hi there, > I need to find categories an subcategories, but I need to be ordered like > this: > > Category1 > subcategory1, > subcategory2, > subcategory3; > Category2 > subcategory1, > subcategory2, > subcategory3; > > at the end of each set of subcategories I need to put a semicolon instead od > a comma. > Right now I have something lika this: > > [search > db=database.db&grSKUdata=0&categorysumm=t&categorysort=1][founditems][catego > ry] > [search > db=database.db&eqcategorydatarq=[category]&subcategorysumm=t&subcategorysort > =1][founditems][subcategory], > [/founditems];[/search] > [/founditems] > [/search] > > The result of this is: > > Category1 > subcategory1, > subcategory2, > subcategory3,; > Category2 > subcategory1, > subcategory2, > subcategory3,; > > How can I take away the last comma and insert the semicolon instead? > Any Idea? > Thanks > -Rodolfo de la Garza > > > ------------------------------------------------------------- > 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 > ------------------------------------------------------------- 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 Andy Willett

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:

Here's how to kill a Butler Database. (1997) WebCat editing, SiteGuard WAS:SiteAssociative lookup style? (1997) Searching multiple criteria (2000) Help! WebCat2 bug (1997) Math with Time (1997) form data submission gets truncated (1997) French characters in variables (2001) Time to opensource? (2006) Re1000001: Setting up shop (1997) could someone please try this - it's very quick and easy (2000) [WebDNA] [BULK] which of these tags exist in 7.0 (2011) nested showif? (1998) Bad Code Contest (2007) Probably a very simple question? (1997) Buying sans cart (1997) Credit card processing - UK (1997) Time since application launch (1999) Help! WebCat2 bug (1997) SandBox and ImageMagick (2003) Robert Minor duplicate mail (1997)