Re: Case statement
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 53147
interpreted = N
texte = Any ideas why it's not doing the [Function], just returning the name of it?I have tried [interpret][FuncNameA domain=[domain]][/interpret] in case itwas that but no.It just doesn't seem to do the function.Thanks========================================Steve Craig - Asylum Interactive LtdTel +44 1224 642960 Fax +44 1224 642962========================================http://www.asylumweb.comEmail: steve@asylumweb.com========================================> From: "Andrew Simpson"
> Reply-To: (WebDNA Talk)> Date: Sat, 27 Sep 2003 03:57:56 +1200> To: (WebDNA Talk)> Subject: Re: Case statement> > dude- that would work just fine... only thin is that it must be messing up> the middle statement somehow... theres nothing wrong with your case> statement.> > > ----- Original Message -----> From: "Steve Craig" > To: "WebDNA Talk" > Sent: Saturday, September 27, 2003 3:53 AM> Subject: Case statement> > >> Hi>> >> Brain fade time of day again I'm afraid. Can someone tell me what I'm> doing>> 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 to> happen>> 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/> -------------------------------------------------------------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:
Any ideas why it's not doing the [function], just returning the name of it?I have tried [interpret][FuncNameA domain=[domain]][/interpret] in case itwas that but no.It just doesn't seem to do the function.Thanks========================================Steve Craig - Asylum Interactive LtdTel +44 1224 642960 Fax +44 1224 642962========================================http://www.asylumweb.comEmail: steve@asylumweb.com========================================> From: "Andrew Simpson" > Reply-To: (WebDNA Talk)> Date: Sat, 27 Sep 2003 03:57:56 +1200> To: (WebDNA Talk)> Subject: Re: Case statement> > dude- that would work just fine... only thin is that it must be messing up> the middle statement somehow... theres nothing wrong with your case> statement.> > > ----- Original Message -----> From: "Steve Craig" > To: "WebDNA Talk" > Sent: Saturday, September 27, 2003 3:53 AM> Subject: Case statement> > >> Hi>> >> Brain fade time of day again I'm afraid. Can someone tell me what I'm> doing>> 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 to> happen>> 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/> -------------------------------------------------------------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:
Same DB Same Time (2004)
wish list (2002)
WebCatalog can't find database (1997)
encryption madness (2003)
Notepad problems (1998)
Kaaaaahhhhhhhnnnnnnn! (1997)
PCS Frames (1997)
Rendering out a page (1997)
Merging databases (1997)
Active Server Code... (1998)
Sku numbers (1997)
customizing the color of user's pages (1997)
[WebDNA] ubuntu permissions can't append db (2019)
WebCat2 - Getting to the browser's username/password data (1997)
different show next (1997)
Paypal merchant code tricks or pitfalls (2003)
Add to Cart & List of Products (1997)
WebDNAdev.net Widget (2003)
WebCat b13 CGI -shownext- (1997)
Test (2003)