>re: disable the "-" key
>
>On key label - Do Nothing
>
>Procedure Nothing
>Return && Nothing
Michael,
First ON KEY LABEL - * will do this without a dummy function delcaration.
Second, this is not a good way to handle this situation. ON KEY is an intercommand interrupt which is global in scoipe, that is it will prevent the key from being processed anywhere.
Third, good encapsulation dictates that the textbox should handle the key strokes internally, using the KeyPress event is exactly what the KeyPress is for.
Also, as an intercommand interrupt, OKL's can have severe and devastating side effects. The OKL routine will interrupt running code and can cause all kinds of side effect problems. It is much better to handle things in a KeyPress evetn where the event doesn't fire unless the context is right for a key to be pressed. Of course teh exception to this rule is when you
need and intercommand interrupt.