You haven't said whether this is on the keypress event of Text0, or some
other control.
My guess (in a vague, general way) is that this keypress is also causing
some other actions.
When you stop the code with your breakpoint, those other actions happen
first, then you execute your code and get the result you wanted.
If you don't stop the code, the other actions happen after yours, so you see
their effects, not yours.
One common approach to prevent other actions associated with the key you've
pressed is to use
keyascii=0
in your code, so the keystroke is not processed further.
HTH
- Turtle
"seeker52" <ak*****@hotmail.com> wrote in message
news:8c**************************@posting.google.c om...
if keyascii = 32 then
text0 = text0 & " "
text0.selstart = len(text0)
end if
This does exactly what it needs to do when a breakpoint is added
inside the if. Without the breakpoint the keypress does not work
properly. Why would this be and how can it be rectified?
seeker53