Agnes
Guten Tag.
I remembered after Naomi replied. I always want to know why something is happening. What I forgot is that putting the backslash lessthan symbol in a command button caption causes the command button click to load the action into the event handler, (or something like that.) Therefore the Do Case stuff on the for keypress is redundant. That is why the nodefault is needed to prevent the backslash lessthan symbol in the button caption from doing the default action.
Tsuss.
Ron Seidl
Independent Developer
VFP
"I'm playing in life's theater in anticipation of a great cast party!"