Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pasting in Excel occasionally randomly fails
Message
De
29/10/2014 01:24:18
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01609799
Message ID:
01610066
Vues:
29
>I think both you and Gregory are correct, as it will depend on the value of AutoYield
>
>"Specifies whether an instance of Visual FoxPro processes pending Windows events between execution of each line of user program code."
>
>The question I am not sure about the answer is if the foxpro timer creates a windows event or not. (I always assumed it is, I think it is much safer to think this way and following this assumption I never write code in a timer that uses data in the current data session, I will use a data session object inside the timer if I need to manipulate data)

Timer, just like any other object, executes its code in the datasession in which it was created (which still holds for session and form objects, which instantiate a DS first and then get created in it).

>[UPDATE]
>Actually I think you are right Jim, I've been living a lie! code is not interrupted by a timer, I just created a program with a timer and some FOR loops, and if I do not put DOEVENTS inside the loop, the timer never fires, shame on me!

Which then creates chaos when debugging: the code which would never get interrupted in real time, gets interrupted any number of times while we're stepping through it. So if timer code has any side effects which may affect the code we're debugging, we're observing the wrong event.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform