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:

WebCat2: multiple currency support (1997) Error Log.db --however (1997) Deleting Orders (1997) [dos] command question (1997) emailer error 103 part ii (1997) stumped [OT] (2001) [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (2012) displaying New products (using [date]) (1997) [OT] Site Check please (2006) Problems with [Applescript] (1997) proper username/password *w/out* the authenticate dialog. (2000) Aaron kant add (or whatever it was) (2000) Search design (1997) emailer 150 (1997) problems with 2 tags (1997) Erotic Sites (1997) WebDNA on Windows (2003) WebCatalog2 Feature Feedback (1996) WCS Newbie question (1997) Hiding HTML and page breaks (1997)