Some time ago, I made the suggestion that there should be a REBLANK@ routine. I revisited that in another post, and Paul made the suggestion that I use (my coding):
BLANK = CHAR(0)
NW = SendMessage (iHandle, EM_SETSEL, 0, -1)
NW = SendMessage (iHandle, EM_REPLACESEL, 0, BLANK)
I ran the demonstration code, entered 123 into the %rf box, and pressed the button to reblank it, and the box showed D@@. On looking into EM_REPLACESEL in MSDN, I came to the conclusion that maybe I should use
BLANK = CHAR(0)
NW = SendMessage (iHandle, EM_SETSEL, 0, -1)
NW = SendMessage (iHandle, WM_SETTEXT, 0, BLANK)
Later on, Paul suggested that I use:
L = SetWindowText(iHandle, '')
where L is LOGICAL.
None of the alternatives actually blanks the box. I could really do with a routine that actually did re-blank the box!
Eddie