how to shorten a case structure?

Mark Schonewille m.schonewille at economy-x-talk.com
Mon Jun 6 08:57:13 EDT 2011


Hi,

I think the point is that you wouldn't need the switch anymore:

on bar x
  do ("foo" & x)
end bar

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce

On 6 jun 2011, at 14:21, John Dixon wrote:

> 
> on mouseUp
>   put "foo" & random(3) into myVar
>   put (last char of myVar) into whichOne
> 
>   switch whichOne
>      case whichOne
>         put "myFunction" && whichOne
>         break
> 
>   end switch
> end mouseUp
> 
> Maybe ?....
> 





More information about the use-livecode mailing list