Switch, Case and wild-cards?

Mark Wieder mwieder at ahsoftware.net
Thu Dec 27 21:11:00 EST 2012


Richmond-

Thursday, December 27, 2012, 2:26:07 PM, you wrote:

> So there I am up to my thighs in a switch statement with a good 500 odd
> cases . . .

I was going to answer, but Jacque beat me to it.

But wait... you've got a switch statement with 500 cases? That in
itself would make me run around babbling about purple things. I'd bet
there's a simpler (and probably faster - "the text of fld..." has to
be evaluated at runtime, not compiled) way to accomplish what you're
trying to do. Regex comes to mind, but I don't know what problem
you're trying to solve.

-- 
-Mark Wieder
 mwieder at ahsoftware.net





More information about the use-livecode mailing list