Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RemoveObject() and ControlCount
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
RemoveObject() and ControlCount
Miscellaneous
Thread ID:
00140062
Message ID:
00140062
Views:
54
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
Map
View

Click here to load this message in the networking platform