Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Autoyield and Doevents
Message
De
03/05/2010 09:22:16
 
 
À
03/05/2010 03:56:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01462750
Message ID:
01462780
Vues:
51
Thanks Gregory. Had the two related in my mind for some reason but I understand it now.


>>Hi All,
>>
>>When a form need the _VFP.AutoYield = .F. due to it having an OCX when should one issue the DOEVENTS? Before setting _VFP.AutoYield back to .T. or after setting it back to .T.?
>>
>>
>>
>>_VFP.AutoYield = .F.
>>
>>...
>>...
>>...
>>
>>DOEVENTS  &&   <= here ....
>>
>>_VFP.AutoYield = .T.
>>
>>DOEVENTS  &&   <= or here ?
>>
>>
>
>I don't think you need any DoEvents
>
>Unprocessed windows events are queued.
>
>Process window's events = process some events in the queue
>
>With autoyield TRUE, the window's events are processed between lines of code + when vfp enters a wait state
>
>With autoyield FALSE, the window's events are processed when vfp enters a wait state
>
>Wait state:
>- waiting for user input, nothing else to do
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform