Re: What abobut variables named max ???

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 29270
interpreted = N
texte = but I thought values generated from a [search] were SUPPOSED to override [math] and [text] values.... this is what you told me several weeks ago. So if the [search] indeeds finds 0 records then it seems like proper behaviour, no? (I must be missing something?)-JohnKenneth Grome wrote:> >> I learned more about this issue. It seems I can set a variable > >> named max to a value of 9 before a search context, and it > >> keeps the value of 9 everywhere on the page *except* inside the > >> search context, where it changes to a value of 0 for some > >> unknown (and undocumented) reason. > >> > >> What's going on here? All I'm trying to do is use: > >> > >> [showif [numfound]>[max]] > >> Show more items ...
> >> [shownext] > >> [/shownext] > >> [showif] > >> > >> inside my search context in order to show or hide the enclosed > >> text and webdna code. So why is webcatalog changing my preset > >> max variable value from 9 to 0 in this code? > >> > >> And why is this behavior not documented? > >> Or is this just another bug in your software? > > > > > >Are you posting to the page in a search context using: > > > > No, there is no external max value being passed into this page, or else it would override my efforts to set max to 9 as a text or math variable. > > The issue here is that [max] displays 9 everywhere on the page -- EXCEPT inside the search context, where it displays 0. Of course this breaks my code because it is doing the wrong thing by displaying 0 instead of 9 ... :( > > This behavior is WRONG based on everything we have learned about the way the webdna language is *supposed* to work, therefore I conclude that this is another bug SM needs to fix. > > ================================ > Kenneth Grome, WebDNA Consultant > 808-737-6499 http://webdna.net > ================================ > > ------------------------------------------------------------- > 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: What abobut variables named max ??? (Kenneth Grome 2000)
  2. Re: What abobut variables named max ??? (John Butler 2000)
  3. Re: What abobut variables named max ??? (Mike Davis 2000)
  4. Re: What abobut variables named max ??? (Kenneth Grome 2000)
  5. Re: What abobut variables named max ??? (Glenn Busbin 2000)
  6. Re: What abobut variables named max ??? (Kenneth Grome 2000)
  7. Re: What abobut variables named max ??? (Jesse Proudman 2000)
  8. What abobut variables named max ??? (Kenneth Grome 2000)
but I thought values generated from a [search] were SUPPOSED to override [math] and [text] values.... this is what you told me several weeks ago. So if the [search] indeeds finds 0 records then it seems like proper behaviour, no? (I must be missing something?)-JohnKenneth Grome wrote:> >> I learned more about this issue. It seems I can set a variable > >> named max to a value of 9 before a search context, and it > >> keeps the value of 9 everywhere on the page *except* inside the > >> search context, where it changes to a value of 0 for some > >> unknown (and undocumented) reason. > >> > >> What's going on here? All I'm trying to do is use: > >> > >> [showif [numfound]>[max]] > >> Show more items ...
> >> [shownext] > >> [/shownext] > >> [showif] > >> > >> inside my search context in order to show or hide the enclosed > >> text and webdna code. So why is webcatalog changing my preset > >> max variable value from 9 to 0 in this code? > >> > >> And why is this behavior not documented? > >> Or is this just another bug in your software? > > > > > >Are you posting to the page in a search context using: > > > > No, there is no external max value being passed into this page, or else it would override my efforts to set max to 9 as a text or math variable. > > The issue here is that [max] displays 9 everywhere on the page -- EXCEPT inside the search context, where it displays 0. Of course this breaks my code because it is doing the wrong thing by displaying 0 instead of 9 ... :( > > This behavior is WRONG based on everything we have learned about the way the webdna language is *supposed* to work, therefore I conclude that this is another bug SM needs to fix. > > ================================ > Kenneth Grome, WebDNA Consultant > 808-737-6499 http://webdna.net > ================================ > > ------------------------------------------------------------- > 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 John Butler

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:

any suggestions for creating a multi-lingual site? (1999) Formulas.db + Users.db (1997) test (2001) Protecting Realms (1998) [WebDNA] MacOS 10.5 instal/config. I'm drowning. ...just needs to work for LOCAL one person (2008) Sort Floating Point Number (2008) ShippingCosts (1998) Time for a hard questions. (1997) WC Database Format (1997) Applying discounts as more items are added... (1997) WebCatalog Mac and cgi-bin (WebSTAR 2.0) (1997) all records returned. (1997) Displaying photo attached to first record (1997) Thanks Grant (1997) New public beta available (1997) Renaming users local files with WebDNA based solution (1969) problem (1998) carriage returns in data (1997) Searching multiple fields from one form field (1997) Notepad problems (1998)