Maybe I'm missing something but shouldn't you draw with DrawMode = 13 and erase with DrawMode = 7 ?
>
>Another related question: I am trying to let the user draw a line on a form and to refresh that line as he moves the mouse. I am drawing the line with DrawMode = 7 (XOR) and then re-drawing it to remove it. But I dont see the line. What properties should I set iro FillColor or other to show the line, then re-draw the line to erase?
>
>If I set the DrawMode = 13 I do see the lines but obviously they dont erase as I move the mouse.
>
>
>>No it's not. You have to use ADDOBJECT() or NEWOBJECT() form methods to add an object to a form.
>>
>>>
>>>If I use THISFORM.LINE(nXCoord1, nYCoord1, nXCoord2, nYCoord2) to draw a line on a form is that line created as an object on the form that can be referenced? If so, how?
>>>
>>>TIA
--sb--