Place a * in front of THISFORM.Refresh? :-))
That did it for me anyway - and no apparent side effects either. I guess it could depend on what you need the pesky thing for in the first place.
>I have been having this same EXACT problem. I can't believe someone else wrote about this, and I found this thread. My form does use the calendar control.
>
>So... What how do we prevent this from happening?
>
>
>
>>Gotcha!
>>
>>If it looks like a timer issue and it acts like a timer issue chances are it's
the Active X Calendar in C:\Program Files\Microsoft Visual FoxPro 9\Ffc\_datetime.vcx>>
>>Now I do hesitate to call it a bug, but in the SelChange method you'll find the following:
>>
>>
>>*** ActiveX Control Event ***
>>LPARAMETERS startdate, enddate, cancel
>>
>>nYear = YEAR(startdate)
>>nDay = DAY(startdate)
>>nMonth = MONTH(startdate)
>>
>>dValue = DATE(m.nYear, m.nMonth, m.nDay)
>>
>>cColumn = THIS.date_column
>>
>>IF !EMPTY(m.cColumn)
>> REPLACE &cColumn WITH m.dValue
>>ENDIF
>>
>>IF TYPE("THISFORM")="O"
>> <b>THISFORM.Refresh</b>
>>ENDIF
>>
>>
>>Assuming that this control may refresh the form -regardless of what else is going on- is, or so it seems to me at least, reaching a bit far.
>>
>>There appears to be some implicit timer inside the control - not so strange since the thing is supposed to keep track of date and time - but it actually fires the REFRESH about once a minut!!
>>
>>I hope this helps with your issue as well.
>>
>>Thank's to you all for your help.
>>
>>Regards
>>
>>Peter
>>
>>
>>>We have a similar problem with VFP9 SP1 with a form using local cursors, haven't been able to get back to it yet to see what is causing it.
>>>
>>>>9.0 SP2
>>>>
>>>>Whatever happens happens before Valid / Lost focus because it seems it does not happen once the control loses focus.
>>>>
>>>>
>>>>>What version of VFP are you using.
>>>>>
>>>>>>From the screen during edit.
>>>>>>
>>>>>>Write something, put your hands in your lap, wait a few (10 - 15 maybe 20?) seconds.
>>>>>>
>>>>>>Text disappears.
>>>>>>
>>>>>>
>>>>>>>Can you clarify what is happening...
>>>>>>>
>>>>>>>- Is the data disappearing from the screen during the edit
>>>>>>>- or disappearing from the table after clicking Save
>>>>>>>
>>>>>>>>A user recently complained about data she had entered suddenly disappearing during edit.
>>>>>>>>
>>>>>>>>I initially dismissed this issue as a fluke but was convinced when I saw it happen myself.
>>>>>>>>
>>>>>>>>SET REFRESH does not seem to apply and there is no code (that I am aware of) that would trigger this behaviour, so I'm puzzled.
>>>>>>>>
>>>>>>>>TIA
Peter Pirker
Whosoever shall not fall by the sword or by famine, shall fall by pestilence, so why bother shaving?
(Woody Allen)