Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Auto refresh of text & editboxes
Message
From
16/06/2008 19:50:38
Neil Mc Donald
Cencom Systems P/L
The Sun, Australia
 
 
To
16/06/2008 10:10:33
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01323502
Message ID:
01324602
Views:
11
Thanks, I'll check it out.

>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>  && Here is the culprit		
>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
Regards N Mc Donald
Previous
Reply
Map
View

Click here to load this message in the networking platform