Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why my application do not refresh value?
Message
 
 
À
24/10/2001 14:21:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00572703
Message ID:
00573058
Vues:
22
Hi!

Did you tried just put "Messagebox()" function here and see if timer event fires at all?

I just put a timer on the form with your code (except function fcBMO_GetTitle() I used just sys(3)) and it worked ok. Seems something inside that function.

Also, HOW you did created that timer object? Did you put it on the VFP form? Is it independent object or object on _Screen form?

Are you sure fcBMO_GetTitle() return different values across the time? If it takes value from the backend table to show changes by another user, you require to use refresh() command for views and SET REFRESH command for unbuffered data to specify the interval of refreshing of internal buffers. You can refresh record immediately by locking it or by sys(1104) function.

HTH.

>My timer execute the following code:
>
>***** MyTimer.timer *******
>this.enabled=.F.
>local lcTitle
>lcTitle=alltrim(fcBMO_GetTitle())
>if thisform.txtTitle.value<>lcTitle
> thisform.txtTitle.value=lcTitle
> thisform.refresh
>endif
>this.enabled=.T.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform