Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RemoveObject() and ControlCount
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
RemoveObject() and ControlCount
Divers
Thread ID:
00140062
Message ID:
00140062
Vues:
55
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
Fil
Voir

Click here to load this message in the networking platform