Re: turning every 5th line red

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 22120
interpreted = N
texte = >This could work, but the problem is that I am displaying the contents of >the Details [Details] field, on a details page, so I am not using a >cart, thus no lineitems. How do I sort, or count the lines from a field >on a non shopping cart related page?Everyone's answers here have been assuming you are dealing with many different records in a database (or lineitems in an invoice). If you are talking about a single big field with lots of lines (as determined by carriage returns), then you could use the [ListWords] context with %0D as a word delimiter to break up the field into separate 'chunks', which you then could use the [ShowIf] with '\' divisble-by operator to do something different on the 5th lineTechnical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: turning every 5th line red (Mike Jones 1999)
  2. Re: turning every 5th line red (Kenneth Grome 1999)
  3. Re: turning every 5th line red (PCS Technical Support 1999)
  4. Re: turning every 5th line red (Mike Jones 1999)
  5. Re: turning every 5th line red (PCS Technical Support 1999)
  6. Re: turning every 5th line red (Mike Jones 1999)
  7. Re: turning every 5th line red (Kenneth Grome 1998)
  8. Re: turning every 5th line red (PCS Technical Support 1998)
  9. Re: turning every 5th line red (bobm 1998)
  10. Re: turning every 5th line red (Mike Jones 1998)
  11. Re: turning every 5th line red (John Winningham 1998)
  12. turning every 5th line red (Mike Jones 1998)
>This could work, but the problem is that I am displaying the contents of >the Details [Details] field, on a details page, so I am not using a >cart, thus no lineitems. How do I sort, or count the lines from a field >on a non shopping cart related page?Everyone's answers here have been assuming you are dealing with many different records in a database (or lineitems in an invoice). If you are talking about a single big field with lots of lines (as determined by carriage returns), then you could use the [listwords] context with %0D as a word delimiter to break up the field into separate 'chunks', which you then could use the [showif] with '\' divisble-by operator to do something different on the 5th lineTechnical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ PCS Technical Support

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:

Authorize.Net and AIM (2004) Diners Club card problems (1999) Does update cart input have to be a submit? (2005) Preserving form data (1999) Help with Shipping Costs (1997) New Site Announcement (1998) Sort of a Dilemma! (1998) WebCat2.0 [format thousands .0f] no go (1997) synching databases on multiple servers (1997) emailer on Windows Beta 18 (1997) PCS Emailer's role ? (1997) Upgrading to 4.0 (2000) hmmm (2006) old cart file deletion (2000) Deleting Orders (1997) Databases inside [SHOWIF] (1998) Multiple Ad databases? (1997) Auto Submit (2000) File Upload (1997) [WebDNA] postfix and dna (2011)