[thelist] Offtopic: Outlook - dumb question

Rory.Plaire at wahchang.com Rory.Plaire at wahchang.com
Fri Dec 21 14:08:41 CST 2001


+| VBA can manipulate Outlook pretty easily.
+| 
+| Any thoughts...

Ha ha!

This list is sometimes astounding...

Maybe there was a clause in the member agreement which read along the lines
of "...and gives the other Members of the list rights and ability to search,
browse, listen to, examine, take as their own and use in discussions any
content which the Member has thought about, considered, has come up in
conversations IRL, or was a deep seated desire which emerged in the last few
days."

Huh.

I was going to make my fortune developing a COM Add-in for MS Outlook which
does just this... allows customization of this lead-in line. Perhaps
choosing random ones... 8)

um. oh. OT. i see.

ok.

<tip type="Javascript Multiple Cases" author="rory">
Ever try to match a range of values with the Javascript "switch" statement?

Compared to, say, VB, it's pretty limited.

Try this, if you have more than one value which can be dealt with as one
case:

//switch example
switch
{
	case 1:
		alert("Hey, foo!");
		break;
	case 2:
		alert("Just 2");
	case 3:
	case 4:
		alert("Bar none.");
		break;
	default:
		alert("Now you're free!");
		break;
}

If you eliminate the break statement, the flow falls to the next case
statement and executes this as well. This can be good for conditionally
adding things together, para ejemplo.

</tip>




More information about the thelist mailing list