>Nadya,
>
>>As far as I can judge without actually trying this code, it would not work, if you enter a space, when hit BackSpace or delete (e.g. Number of spaces will be incorrect).
>
>yikes! of course, you're right. back to the drawing board.
>
Basically, it's a little addition to the existing code:
Pseudocode
if keycode=code(delete) or keycode=code(backspace) and .LastSymbolWasSpace
.NumberOfTralingSpaces=.NumberOfTralingSpaces-1
.LastSymbolWasSpace=(.NumberOfTralingSpaces>0)
endif
>>BTW, you made a typo in a "reset" word.
>thanks ;-) sometimes my fingers aren't connected to the spelling part of my brain.
>
>> What about initialization this control as space(30) by default?
>what would that do for me?
>
Just thought, may be it will help? :)
If it's not broken, fix it until it is.
My Blog