On 8/20/04 11:04 AM, Richard Gaskin wrote:

If one's picky about minimizing typing, because most of those are handled by the engine you can use the case block's fall-through feature to trim the code -- this version also handles "Select All" for objects:

on menuPick which
   switch which
   case "Cut"
   case "Copy"
   case "Paste"
   case "Undo"
     do which

Picky purist point: using "do" forces the compiler to run and can slow the script, which is why I use the redundant form.


--
Jacqueline Landman Gay         |     [EMAIL PROTECTED]
HyperActive Software           |     http://www.hyperactivesw.com
_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to