Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dangling reference?
Message
From
09/08/2010 03:07:39
 
 
To
03/08/2010 10:00:46
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:
01475718
Views:
221
Hi Dennis,

sorry for my late answer. I haven't been on UT for some days.

I have to admit, I use collections usually 'on the fly', as I do this with all my nonvisual classes. This enabled me to change those classes and my forms simultaniously. Otherwise I'd always have to close the form. So...I really can't tell you, if collections only work at runtime/programmatically as that's the only way I ever use them ;-)

>Thomas,
>
>Yes, I tried the 'drag n drop' way. So, this means that Collection classes can ONLY be used by instantiating them programatically?
>
>Thanks
>Dennis
>
>
>>Hi (again) Dennis,
>>
>>just saw the last sentence of your post, that dropping the collection class on the form won't do.
>>
>>I assume, you tried this via drag 'n' drop from the class catalog to the form.
>>This won't do. If you look closely at the class catalog, you will see the icon of you marked collection class in the upper left corner of the catalog window. This icon can be dropped on your form.
>>
>>
>>>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