Re: Dividers

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 52014
interpreted = N
texte = This might work if there were 100s of records but there could be just 20 returned although the number field could stretch from 101 to 1500. The index is only counting how many records returned not the value of the number field. I.e. I could in theory have... 121 135 208 219 366 433 705 1206 1405 1499 Any help much appreciated. > Try this... > > [search db=] > [founditems] > > > [Num] [Field1] [Field2] > > > [showif [index]\100] > > ================== > > [/showif] > > [/founditems] > [/search] > > Cheers > > Paul > > On Thursday, July 31, 2003, at 02:46 pm, Steve Craig wrote: > >> Hi >> >> Sorry about this but my brain has just shut down and I can't think of >> the >> logic I need to accomplish a simple thing. I have a database of >> records that >> contain a number in one of the fields. I am trying to list out all the >> records like.. >> >> Num Field1 Field2 .... And so on >> 112 Blah Blah >> 189 Blah Blah >> 243 Blah Blah >> 255 Blah Blah >> 268 Blah Blah >> 301 Blah Blah >> etc etc >> >> What I want to do is insert a dividing table row every time the number >> goes >> past each unit of 100 ie... >> >> Num Field1 Field2 .... And so on >> 112 Blah Blah >> 189 Blah Blah >> ================== >> 243 Blah Blah >> 255 Blah Blah >> 268 Blah Blah >> ================== >> 301 Blah Blah >> >> I'm sure this is easy but thoughts of my holiday which starts tomorrow >> are >> taking over. Thanks for any help. >> >> Cheers >> ======================================== >> Steve Craig - Asylum Interactive Ltd >> Tel +44 1224 642960 Fax +44 1224 642962 >> ======================================== >> http://www.asylumweb.com >> Email: steve@asylumweb.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://webdna.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://webdna.smithmicro.com/ > ======================================== Steve Craig - Asylum Interactive Ltd Tel +44 1224 642960 Fax +44 1224 642962 ======================================== http://www.asylumweb.com Email: steve@asylumweb.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://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Dividers ( Brian Fries 2003)
  2. Re: Dividers ( Donovan 2003)
  3. Re: Dividers ( Brian Fries 2003)
  4. Re: Dividers ( sallyr@dvinci.com (Sally Reidy) 2003)
  5. Re: Dividers ( "WebDna @" 2003)
  6. Re: Dividers ( Steve Craig 2003)
  7. Re: Dividers ( Paul Willis 2003)
  8. Dividers ( Steve Craig 2003)
This might work if there were 100s of records but there could be just 20 returned although the number field could stretch from 101 to 1500. The index is only counting how many records returned not the value of the number field. I.e. I could in theory have... 121 135 208 219 366 433 705 1206 1405 1499 Any help much appreciated. > Try this... > > [search db=] > [founditems] > > > [Num] [Field1] [Field2] > > > [showif [index]\100] > > ================== > > [/showif] > > [/founditems] > [/search] > > Cheers > > Paul > > On Thursday, July 31, 2003, at 02:46 pm, Steve Craig wrote: > >> Hi >> >> Sorry about this but my brain has just shut down and I can't think of >> the >> logic I need to accomplish a simple thing. I have a database of >> records that >> contain a number in one of the fields. I am trying to list out all the >> records like.. >> >> Num Field1 Field2 .... And so on >> 112 Blah Blah >> 189 Blah Blah >> 243 Blah Blah >> 255 Blah Blah >> 268 Blah Blah >> 301 Blah Blah >> etc etc >> >> What I want to do is insert a dividing table row every time the number >> goes >> past each unit of 100 ie... >> >> Num Field1 Field2 .... And so on >> 112 Blah Blah >> 189 Blah Blah >> ================== >> 243 Blah Blah >> 255 Blah Blah >> 268 Blah Blah >> ================== >> 301 Blah Blah >> >> I'm sure this is easy but thoughts of my holiday which starts tomorrow >> are >> taking over. Thanks for any help. >> >> Cheers >> ======================================== >> Steve Craig - Asylum Interactive Ltd >> Tel +44 1224 642960 Fax +44 1224 642962 >> ======================================== >> http://www.asylumweb.com >> Email: steve@asylumweb.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://webdna.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://webdna.smithmicro.com/ > ======================================== Steve Craig - Asylum Interactive Ltd Tel +44 1224 642960 Fax +44 1224 642962 ======================================== http://www.asylumweb.com Email: steve@asylumweb.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://webdna.smithmicro.com/ Steve Craig

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:

email code (1998) WC2b15 File Corruption (1997) Great product and great job ! (1997) OLD ORDERS (1998) Tcp Connect and the disappearing page (2000) Customizing WebDelivery.html (1998) database consultant needed (1998) Template Cache problem, bombing WebSTAR problem (2000) NT 4.0/IIS WebCat Installation (1998) Possible Bug in 2.0b15.acgi (1997) Trunk-gator (1997) Page-Execution-Timer...PHP vs WebDNA (2004) SSL and reg web* (1997) Not really WebCat (1997) Re:Emailer and encryption (1997) sendmail (2000) Creditcard verification with WebCat (1998) WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997) [table] strange behaviour REAL solution (2003) gateway application timeouts (1998)