Re: Case statement
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 53150
interpreted = N
texte = Steve Craig wrote:> [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] > You can test the [switch] by hardcoding [mydomain] to something and make sure that works, first. Then you need to make sure that your [function] declarations are active in the page (take that call out of the [switch] statement. Finally, if all that works, there is a bug with [function] and [switch]...John-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4501 Forbes BoulevardSuite HLanham, MD 20706301-459-3366 x.5010fax 301-429-5748-------------------------------------------------------------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:
Steve Craig wrote:> [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] > You can test the [switch] by hardcoding [mydomain] to something and make sure that works, first. Then you need to make sure that your [function] declarations are active in the page (take that call out of the [switch] statement. Finally, if all that works, there is a bug with [function] and [switch]...John-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4501 Forbes BoulevardSuite HLanham, MD 20706301-459-3366 x.5010fax 301-429-5748-------------------------------------------------------------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/
John Peacock
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:
Need formatting help (1998)
RSS Feeds; basic info (2005)
RE: Credit card processing - UK (1997)
typhoon... (1997)
Entry point? Security w/ dbase helper? (1997)
RE: Cart Template (1997)
webcat license???? (1997)
Now when I send TeaRoom Order fields it does not post in Invoice. (1997)
WC allow classified users to edit entry (1999)
WCS Newbie question (1997)
Emailer Set Up (1997)
Weird Problem (1997)
Feature Request: ! character bug correct in [showif (2000)
calculating tax rates, mail order solutions and version 2 (1997)
Calculating multiple shipping... (1997)
WebCatalog f2 Installation (1997)
Introduction/Tutorial/QuickStart (1997)
my price won't move (1997)
RE: New WebCatalog Version !!! (1997)
Nested tags count question (1997)