Re: Case statement
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 53146
interpreted = N
texte = dude- that would work just fine... only thin is that it must be messing upthe middle statement somehow... theres nothing wrong with your casestatement.----- Original Message ----- From: "Steve Craig"
To: "WebDNA Talk" Sent: Saturday, September 27, 2003 3:53 AMSubject: Case statement> Hi>> Brain fade time of day again I'm afraid. Can someone tell me what I'mdoing> wrong with this code? I am trying to call one of three functions depending> what the end of a domain name is.>> [text show=T]myDomain=[Middle> StartAfter=.&EndBefore=][DOMAIN][/middle][/text]>> [Switch value=[myDomain]]> [Case value=com]> [FuncNameA domain=[domain]]> [/Case]> [Case value=net]> [FuncNameB domain=[domain]]> [/Case]> [Case value=org]> [FuncNameC domain=[domain]]> [/Case]> [Default]> Whatever I want in here> [/Default]> [/Switch]>> If I send this page 'page.tpl?domain=asylumweb.com' all that seems tohappen> is that it returns>> [FuncNameA domain=asylumweb.com]>> It doesn't seem to trigger the function. Can you do this within a [case]?>> Hope this makes sense.> ========================================> 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/
Associated Messages, from the most recent to the oldest:
dude- that would work just fine... only thin is that it must be messing upthe middle statement somehow... theres nothing wrong with your casestatement.----- Original Message ----- From: "Steve Craig" To: "WebDNA Talk" Sent: Saturday, September 27, 2003 3:53 AMSubject: Case statement> Hi>> Brain fade time of day again I'm afraid. Can someone tell me what I'mdoing> wrong with this code? I am trying to call one of three functions depending> what the end of a domain name is.>> [text show=T]myDomain=[Middle> StartAfter=.&EndBefore=][DOMAIN][/middle][/text]>> [Switch value=[myDomain]]> [Case value=com]> [FuncNameA domain=[domain]]> [/Case]> [Case value=net]> [FuncNameB domain=[domain]]> [/Case]> [Case value=org]> [FuncNameC domain=[domain]]> [/Case]> [Default]> Whatever I want in here> [/Default]> [/Switch]>> If I send this page 'page.tpl?domain=asylumweb.com' all that seems tohappen> is that it returns>> [FuncNameA domain=asylumweb.com]>> It doesn't seem to trigger the function. Can you do this within a [case]?>> Hope this makes sense.> ========================================> 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/
"Andrew Simpson"
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:
Formulas.db + Users.db (1997)
Goofy Date Sorting (1998)
WebCat2b12 - nesting [tags] (1997)
WebCat2 - [format thousands] (1997)
Thanks and new Question on lineitems (2002)
Summary search -- speed (1997)
WebCat2b13MacPlugIn - [include] (1997)
Resume Catalog ? (1997)
WebCat2b12 Mac.acgi--[searchstring] bug (1997)
Re:no template caching (1997)
WebDNA on MacTel (Intel) (2006)
[REPLACE] inside [FOUNDITEMS] (1998)
sandboxes with 6.0 (2004)
Multihoming and webcat (1998)
Q: writefile and uploads. (1998)
Re:Password Authentication - request example (1998)
WebCommerce: Folder organization ? (1997)
[OT] Stuff (2002)
shown next / show prev (1998)
[WebDNA] Major grep/convertchars linux issues when writing to db (2010)