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 it was that but no. It just doesn't seem to do the function. Thanks ======================================== Steve Craig - Asylum Interactive Ltd Tel +44 1224 642960 Fax +44 1224 642962 ======================================== http://www.asylumweb.com Email: 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:

    
  1. Re: Case statement ( Steve Craig 2003)
  2. Re: Case statement ( Grant Hulbert 2003)
  3. Re: Case statement ( Donovan 2003)
  4. Re: Case statement ( Steve Craig 2003)
  5. Re: Case statement ( Steve Craig 2003)
  6. Re: Case statement ( John Peacock 2003)
  7. Re: Case statement ( Donovan 2003)
  8. Re: Case statement ( Donovan 2003)
  9. Re: Case statement ( Steve Craig 2003)
  10. Re: Case statement ( "Andrew Simpson" 2003)
  11. Case statement ( Steve Craig 2003)
  12. issues with nested case statements? (Andrew Simpson 2001)
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 it was that but no. It just doesn't seem to do the function. Thanks ======================================== Steve Craig - Asylum Interactive Ltd Tel +44 1224 642960 Fax +44 1224 642962 ======================================== http://www.asylumweb.com Email: 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:

Searching multiple records for certain info (2000) More on the email templates (1997) Preventing Merchant Settling ? (1997) Add to Cart & List of Products (1997) listcookies works only sometimes (1997) Nested Lookups (1998) WebCatalog for Postcards ? (1997) Is grep not working with umlauts? (2002) Hyperlink in email (2002) Emailer (1997) taxTotal, too (1997) [WebDNA] GREP question (2010) How to include weather (2000) Flash Stores (2003) no global [username] or [password] displayed ... (1997) is sku a REQUIRED field on NT (1997) SSL Certificates (2004) [WebDNA] sudo WebCatalogCtl stop won't work (2016) WebMerchant Question (1998) Web Catalog 2 demo (1997)