Hi Dennis,
there would be two ways of doing this.
#1: Subclass VFPs collection class and write your code directly and furthermode only instantiate this class.
#2: After instantiating the collection use BINDEVENT() to bind the destroy event to a method of your choice that contains the code.
>
In collection's .destroy(), try with a
>
>this.remove(-1) >
>The collection object was created programmatically in the Init of the container class. How do I inject this code?
>
>Also, I tried creating a Collectiion class using the class designer. It does not however, want to be dropped on a form like how one drops a textbox or label class...
>
>Thanks
>Dennis
Best Regards
-Tom
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.
Oh, and BTW: 010101100100011001010000011110000101001001101111011000110110101101110011