AW: how to shorten a case structure?

Tiemo Hollmann TB toolbook at kestner.de
Mon Jun 6 09:21:54 EDT 2011


Hi Mark,
you are right in this case, but actually my switch structure has a couple of
different cases, each with a counter.
Thanks
Tiemo

> -----Ursprüngliche Nachricht-----
> Von: use-livecode-bounces at lists.runrev.com [mailto:use-livecode-
> bounces at lists.runrev.com] Im Auftrag von Mark Schonewille
> Gesendet: Montag, 6. Juni 2011 14:57
> An: How to use LiveCode
> Betreff: Re: how to shorten a case structure?
> 
> 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 ?....
> >
> 
> 
> _______________________________________________
> 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