Every time this happens, I have complained as it being a bug - and low and
behold in the next release it has usually become "protected" instead of
private ..

It has paid to complain ....

I usually just have a changed version classes.pas etc that contains the
required fixes - just have to reapply at each version upgrade ..
You have to do this anyway to fix some bugs ..

Myles.


-----Original Message-----
From: David Brennan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 21, 2000 3:59 PM
To: Multiple recipients of list delphi
Subject: Re: [DUG]: Sorting a Collection


Frustrating.

Does anyone else find that Borland are a bit too fanatical about hiding
things away as private declarations?

I've lost track of the number of times I wanted to extend something only to
find the internal bits I needed were private. Sometimes you can get around
it, but it's never as elegant as it could be. Would it hurt to have a few
more things visible - perhaps a few read only protected properties would do?

Just an idea...

David.
DB Solutions.

----- Original Message -----
From: "Mike Mueller" <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Thursday, September 21, 2000 3:44 PM
Subject: RE: [DUG]: Sorting a Collection


> Good point - the FList field of a TCollection is private and there is
> neither a way of getting to it nor triggering its Sort function.
>
> You could either write your own QSort (or bubble sort depending on your
> style) to process your collection, or you could copy the collection items
> into a TList, call TList.Sort and copy them back to the collection.  (ooh
> nasty)
>
> Maybe you really wanted to use a Tlist in the first place? (:
> Mike
>
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> > Behalf Of [EMAIL PROTECTED]
> > Sent: Friday, 22 September 2000 3:11
> > To: Multiple recipients of list delphi
> > Subject: [DUG]: Sorting a Collection
> >
> >
> > HI all.
> >
> > how does one got about sorting a Collection ?
> > I want to do it based on a Numberic value.
> >
> >
> > Cheers, Jeremy Coulter
> >
> >
> >
> > Jeremy Coulter (Manager)
> > Visual Software Solutions
> > Christchurch, New Zealand
> > PH 03-3521595
> > FAX 03-3521596
> > MOBILE 021-2533214
> > www.vss.co.nz
> >
> > ------------------------------------------------------------------
> > ---------
> >     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> >                   Website: http://www.delphi.org.nz
> > To UnSub, send email to: [EMAIL PROTECTED]
> > with body of "unsubscribe delphi"
>
> --------------------------------------------------------------------------
-
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to