Edit menu recipe?

J. Landman Gay jacque at hyperactivesw.com
Fri Aug 20 17:25:40 EDT 2004


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         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com


More information about the use-livecode mailing list