Re: [WebDNA] feature suggestion

This WebDNA talk-list message is from

2011


It keeps the original formatting.
numero = 106820
interpreted = N
texte = Great function! I modified so it also returns "T" or in my edit a "1" if the field is defined but has no value. So this returns 1 if the field is at all defined even if the value is set to nothing and 0 if the field is not defined

[function name=?]
    [If ("[url][interpret][[params_string]][/interpret][/url]"!"%5B[interpret][params_string][/interpret]%5D") & ([countchars][url][interpret][[params_string]][/interpret][/url][/countchars]>-1)]
        [Then][return]1[/return][/Then]
        [Else][return]0[/return][/Else]
    [/If]
[/function]

Best, Olin Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] feature suggestion (Olin Lagon 2011)
  2. Re: [WebDNA] feature suggestion (William DeVaul 2011)
  3. Re: [WebDNA] feature suggestion ("Brian B. Burton" 2011)
  4. Re: [WebDNA] feature suggestion (William DeVaul 2011)
  5. Re: [WebDNA] feature suggestion - long response (Govinda 2011)
  6. Re: [WebDNA] feature suggestion (Govinda 2011)
  7. Re: [WebDNA] feature suggestion - long response (William DeVaul 2011)
  8. Re: [WebDNA] feature suggestion (William DeVaul 2011)
  9. Re: [WebDNA] feature suggestion - long response (Tom Duke 2011)
  10. Re: [WebDNA] feature suggestion - long response (Ronald Kirkland 2011)
  11. Re: [WebDNA] feature suggestion - long response (Ronald Kirkland 2011)
  12. Re: [WebDNA] feature suggestion - long response ("Brian B. Burton" 2011)
  13. Re: [WebDNA] feature suggestion - long response (Kenneth Grome 2011)
  14. Re: [WebDNA] feature suggestion - long response ("Brian B. Burton" 2011)
  15. Re: [WebDNA] feature suggestion (Kenneth Grome 2011)
  16. Re: [WebDNA] feature suggestion (William DeVaul 2011)
  17. Re: [WebDNA] feature suggestion (William DeVaul 2011)
  18. Re: [WebDNA] feature suggestion (Aaron Michael Kaczmarek 2011)
  19. Re: [WebDNA] feature suggestion ("Brian B. Burton" 2011)
  20. Re: [WebDNA] feature suggestion (Brian Fries 2011)
  21. Re: [WebDNA] feature suggestion ("Brian B. Burton" 2011)
  22. Re: [WebDNA] feature suggestion (Govinda 2011)
  23. [WebDNA] feature suggestion ("Brian B. Burton" 2011)
Great function! I modified so it also returns "T" or in my edit a "1" if the field is defined but has no value. So this returns 1 if the field is at all defined even if the value is set to nothing and 0 if the field is not defined

[function name=?]
    [If ("[url][interpret][[params_string]][/interpret][/url]"!"%5B[interpret][params_string][/interpret]%5D") & ([countchars][url][interpret][[params_string]][/interpret][/url][/countchars]>-1)]
        [Then][return]1[/return][/Then]
        [Else][return]0[/return][/Else]
    [/If]
[/function]

Best, Olin Olin Lagon

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:

Time limit to WebDNA solution (2001) Grant, please help me ... (1997) Re:multiple digests, please stop (1997) form validator issue (2005) WebCat2: Items xx to xx shown, etc. (1997) Expiration of Carts (1997) passing large amount of text in post form (2005) Clear command and ShoppingCart.tmpl (1997) 2.0 Info (1997) Problems getting parameters passed into email. (1997) Changes to the List (1997) External Images (1998) why do I get authorization requests, even though (1999) linetiems in thankyou.tpl (1997) Links and urls (2005) WebCat2 - Getting to the browser's username/password data (1997) Bug Report, maybe (1997) The USArea® Network web site ... (1997) Authenticate (1997) Searching multiple fields from one form field (1997)