Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
RemoveObject() and ControlCount
In VFP5, when dragging and dropping a Job object(based on container) from container1 to container2, I issue a AddObject in the new container and a RemoveObject in the old one to 'move' the job around.
When I check container1.controlcount, it is the same before and after the RemoveObject(). Only if I use a one-second timer or just a commandbutton to check controlcount after the drag does it show the correct count.
How can I get an accurate controlcount 'on the fly' so to speak?
Also, when I 'Do Myprj' in VFP the Job jumps around the containers happily, but in an EXE, the RemoveObject() line seems not to be executing and the class is now in two containers. A =MessageBox() after the RemoveObject() shows that the line is executing, but the old Job remains.
Thanks for your help,
Steve
Electronika Computers, Inc.
It's not just funky dance music anymore.
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement