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