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:
Zipcodes (1998)
[WC 2.1.30] Stack overflow. (2000)
Too Much Rootbeer Free Offer (1997)
MacActivity and PCS (1997)
php vs WebCatalog (2000)
WebCatalog for guestbook ? (1997)
WebCat2final1 crashes (1997)
Removing [showif] makes a big difference in speed (1997)
Loop wierdness? (2004)
Error Lob.db records error message not name (1997)
Purchae error - Fixed to a degree (1997)
[searchString] (1997)
X etc.... (1999)
Frames and WebCat (1997)
Virtual hosting and webcatNT (1997)
RED QUESTION MARKS AGAIN (1999)
Setting up shop (1997)
Merging databases (1997)
Generating unique SKU from [cart] (1997)
Adding Multiple Items to Shopping Cart from a Results page (1997)