General information
Category:
Forms & Form designer
Title:
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.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only