[thelist] CFswitch doesn't.

Matt Warden mwarden at gmail.com
Fri Aug 12 18:03:48 CDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Frank wrote:
> Can anyone see what I might be missing?

I'm not CF programmer, but unless a CF switch statement is different
than all otehr switch statements, you're missing some break;
statements in there. Try:

switch(fuseaction) {
	case "about": {
		include("../pages/dsp_about.cfm");
		break;
	}
	case "contact": {
		include("../pages/dsp_contact.cfm");
		break;
	}
}

The {} in the case statements are probably not needed, either, as it
is already a code block until the next break;.

- --
Matt Warden
Miami University
Oxford, OH, USA
http://mattwarden.com


This email proudly and graciously contributes to entropy.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFC/SrUAQ0d4HGyPE8RAs+sAJ9xzjY4NZxyPUMTG9ijJhsH7Td2LwCfYrFD
5XnSn6zATLX8NHpdS2SIcwY=
=S4Fd
-----END PGP SIGNATURE-----


More information about the thelist mailing list