Case problem
Klaus Major
k_major at os.surf2000.de
Thu Sep 26 16:43:00 EDT 2002
Bonsoir Dominique,
>> on menupick quoi
>> switch quoi
>> case "nouveaux"
>> create card
>> break
>> ...
>> end switch
>> end menupick
>
> I know that I could build a menu -- but, for the sake of simplicity
> (and
> elegance ;-)) I preferred not to build a menu, instaed I put some
> handlers at the stack level (or at the group level) in order to catch
> my
> commands...
>
> --
> Regards,
> (-8 Dominique
ok, ok, another try...
For the sake of simplicity and elegance ;-)
on commandkeydown thekey
switch thekey
case "n"
create card
break
case "b"
beep
break
end switch
end commandkeydown
I put this in a stack-script and it worked.
Had new card (although i already got one...)
and it beeped :)
Try this at home ;-)
Au revoir
Klaus Major
k_major at os.surf2000.de
More information about the metacard
mailing list