Re: '0' vs. blank

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 61758
interpreted = N
texte = FWIW, doesn't happen on 6.0 IIS 5 I don't think it will impact your results, but you might try the following for your search: [search db=scores.db&neSCOREdatarq=[blank]&asSCOREsort=1&SCOREtype=num] (making the blank field a requirement to the search and also you weren't giving a sorting order (ascending or descending). By the way, you will get 3 players with that search: ID: 2 Competitor: Comp2 Score: 5 ID: 3 Competitor: Comp3 Score: 7 ID: 4 Competitor: Comp4 Score: 9 GJK At 03:05 PM 4/13/2005, you wrote: >I did this on WebDNA5.1c on a Redhat box. I was trying to do a search for >blank fields in a results database that looks like this: > >ID COMPETITOR SCORE >1 Comp1 0 >2 Comp2 5 >3 Comp3 7 >4 Comp4 9 >5 Comp5 > >Comp5 was not in the round, so he didn't score anything. I was using the code > >[search db=scores.db&neSCOREdata=[blank]&SCOREsort=1&SCOREtype=num] >[founditems]....[/founditems] >[/search] > >What returned was a formatted list of 3 players. WebDNA treated the 0 as >a blank value and passed it over. Searching the archives showed just a >few references to 0 = blank, but no patches. Anyone know about a patch or >a simple way around this? >---------------------------------------- ------------------------------------------------------------- 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: '0' vs. blank ( Terry Wilson 2005)
  2. Re: '0' vs. blank ( Gary Krockover 2005)
  3. '0' vs. blank ( Steve Dannaway 2005)
FWIW, doesn't happen on 6.0 IIS 5 I don't think it will impact your results, but you might try the following for your search: [search db=scores.db&neSCOREdatarq=[blank]&asSCOREsort=1&SCOREtype=num] (making the blank field a requirement to the search and also you weren't giving a sorting order (ascending or descending). By the way, you will get 3 players with that search: ID: 2 Competitor: Comp2 Score: 5 ID: 3 Competitor: Comp3 Score: 7 ID: 4 Competitor: Comp4 Score: 9 GJK At 03:05 PM 4/13/2005, you wrote: >I did this on WebDNA5.1c on a Redhat box. I was trying to do a search for >blank fields in a results database that looks like this: > >ID COMPETITOR SCORE >1 Comp1 0 >2 Comp2 5 >3 Comp3 7 >4 Comp4 9 >5 Comp5 > >Comp5 was not in the round, so he didn't score anything. I was using the code > >[search db=scores.db&neSCOREdata=[blank]&SCOREsort=1&SCOREtype=num] >[founditems]....[/founditems] >[/search] > >What returned was a formatted list of 3 players. WebDNA treated the 0 as >a blank value and passed it over. Searching the archives showed just a >few references to 0 = blank, but no patches. Anyone know about a patch or >a simple way around this? >---------------------------------------- ------------------------------------------------------------- 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/ Gary Krockover

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:

Review comparison by PC Magazine: Open for On-line Business (1997) [WriteFile] problems (1997) BBEdit and WebCatalog 2.0? (1997) Add a Blog to your site. (2002) [WebDNA] FastCGI running more than one process! (2013) RE: [WebDNA] WebDNA Start-up Error (2012) Bug? (1997) WebTen? (1997) suggestion (1997) [Semi-OT] ImageMagick Path Weirdness (2005) [WebDNA] Search using CL (2017) [WebDNA] A new popuated field to a DB with 700.000 records (2009) b12 cannot limit records returned and more. (1997) credit card authorization question (1997) Hiring: Web programmer in Seattle area (2000) Out of the woodwork (2007) Not really WebCat- (1997) What am I missing (1997) Running _every_ page through WebCat ? (1997) WebCatalog for guestbook ? (1997)