Switch, Case and wild-cards?

Peter Haworth pete at lcsql.com
Thu Dec 27 22:42:19 EST 2012


You mean regex doesn't make you run around babbling about purple things?!
On Dec 27, 2012 6:11 PM, "Mark Wieder" <mwieder at ahsoftware.net> wrote:

> 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
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list