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:
PIXO support (1997)
RE: Search (1997)
Clean Code: Rules for inserting keyboard returns? (1997)
WebCat2 - Getting to the browser's username/password data (1997)
WebCat2b12plugin - [search] is broken ... not! (1997)
[SearchString] problem with [search] context (1997)
Major bug report on rootbeer (1997)
Problems passing [SKU] with $Replace in 2.0 (1997)
WebCat for Site Search? (1997)
remotely creating and populating a stock inventory db -almost there! (1999)
quantity minimum problem (1997)
Sum of [founditems] ? (2004)
Way OT: Active ISP (2002)
searchable list archive (1997)
[GROUPS] followup (1997)
Search Question (2003)
programmer help needed (1998)
WebDNA-Talk Digest mode broken (1997)
PCS Customer submissions ? (1997)
2.0 Info (1997)