Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dangling reference?
Message
From
02/08/2010 05:26:03
 
 
To
31/07/2010 20:45:09
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01474712
Message ID:
01474845
Views:
206
This message has been marked as a message which has helped to the initial question of the thread.
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
Previous
Reply
Map
View

Click here to load this message in the networking platform