Case statement
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 53145
interpreted = N
texte = HiBrain fade time of day again I'm afraid. Can someone tell me what I'm doingwrong with this code? I am trying to call one of three functions dependingwhat the end of a domain name is.[text show=T]myDomain=[MiddleStartAfter=.&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 to happenis 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 LtdTel +44 1224 642960 Fax +44 1224 642962========================================http://www.asylumweb.comEmail: 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/
Associated Messages, from the most recent to the oldest:
HiBrain fade time of day again I'm afraid. Can someone tell me what I'm doingwrong with this code? I am trying to call one of three functions dependingwhat the end of a domain name is.[text show=T]myDomain=[MiddleStartAfter=.&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 to happenis 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 LtdTel +44 1224 642960 Fax +44 1224 642962========================================http://www.asylumweb.comEmail: 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/
Steve Craig
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:
Web Logs (1998)
WebCat2b12plugin - [search] is broken ... not! (1997)
Linux uninstall / reinstall (2003)
AppleScript error (2003)
Opinion: [input] should be called [output] ... (1997)
WebMerchant 1.6 and https (1997)
Re[2]: Enhancement Request for WebCatalog-NT (1996)
Help with [LineItems] in [OrderFile] on ShoppingCart.tpl (2003)
2.1 Stuff (1998)
[append] problem (1997)
WebCat2b15MacPlugin - [protect] (1997)
Sorting Numbers (1997)
NT vs Mac (1997)
wild question (1998)
[format xs] freeze (1997)
[OT] DOD again (2003)
A simple email page? (1999)
Hiding my Source Code with W* (2000)
my price won't move (1997)
Pirated WebCat? NOT... (2003)