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:
New Mac Public Beta Available (1997)
Mult-File Upload w/ Web Star (2000)
Execute Applescript (1997)
WebCat and HTML/OS (2001)
SKU lookup (1997)
Where's Cart Created ? (1997)
Authorize.net? (2003)
Word search (1997)
SiteGuard Admin Feature ? (1997)
Busy WebCatalog (2000)
2nd WebCatalog2 Feature Request (1996)
Pls Remove me from all Lists (1998)
Problems passing [SKU] with $Replace in 2.0 (1997)
Re:no [search] with NT (1997)
insecuretextvars preference doesn't work (2000)
Searching in a range... (1998)
[ot] iBook vs. 12" PB (2004)
Bug Report, maybe (1997)
Replace Statement (1997)
[OT] SMTP Server for W2000 (2002)