Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Refresh gets aborted by ZOrder
Message
De
15/10/2015 03:37:56
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows 8
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01625937
Message ID:
01625977
Vues:
64
>>Refresh do the task with Control's index order, because control index = Zorder,
>>then the last index = ControlCount it is the last refreshed member.
>>
>>object.ZOrder(0) set the object index to ControlCount, then Refresh process finished.
>
>Thanks for the explanation, it is unfortunate that it works this way thou, and it would have been nice if it was documented "Do not use ZOrder in the refresh of objects contained in a container if you want it to work properly" :)

The documentation should not say what to do,
but must explain in great detail how the machine works
where running the program written by developers.
In the case of high-level languages, often those who create the environment
are reluctant to explain the backstage.
Enough say that all cycles are based on VFP's control index,
and that ZOrder (1) sets the control index to 1 and ZOrder (0) sets it to ControlCount.
This makes it clear that within a loop, ZOrder(1) makes the infinite loop
and ZOrder (0) stops him immediately.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform