Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AddObject Error 1575
Message
 
 
To
07/05/2002 12:10:55
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00653555
Message ID:
00653596
Views:
27
Using a different name for the textbox control is waht worked? There should be no problem or bad practice in adding a grid to a from class. I suspect your problem lies somewhere in the queue when objects are actually created and/or removed [pluse get cleared from memory - garbage collection]. A small delay after the RemoveObject as a result of testing to see if the object was indeed removed before adding your object back with the same name may be enough of a time delay for the removed object to be cleared from memory.

If you did not test for removal, then adding the abject with a different name may have been enough of a time delay for the removed object to be cleared from memory so you could rename the NAME property back to Text1.

>Mark,
> Thanks! That seems to have worked, but now my question is why? I have used this grid class on many forms and never had a problem. This is the first time I put the grid on a form class. Is that where my problem stems from? Is it a bad practice to put objects, such as grids, onto form classes?
>
>I seem to have noticed some other strange behavior, such as Column background properties not being inherited from the class to the Form.
>
>Thanks again for your help.
>
>Tim Trostle
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform