However, you can declare a set as:
type
  TMyset = set of TMytype;

and High() will work for TMyType.

The help explicitly states that order has no meaning in a set, so you cannot
find out the order of the elements in a set - you can only iterate through
the elements of the base type and see if they appear in the set.
  Andrew.

> -----Original Message-----
> From: Peter Hyde [SMTP:[EMAIL PROTECTED]]
> Sent: Saturday, February 20, 1999 5:09 AM
> To:   Multiple recipients of list delphi
> Subject:      RE: [DUG]:  about SET
> 
> 
> Jim wrote:
> 
> > I don't think high(setname) works for a set. We maybe confuse 'set' and
> > 'enumerated', don't we?
> 
> Almost certainly. <g>
> 
> 
> 
> cheers,
> peter
> 
> ==================================================
> Peter Hyde, SPIS Ltd, Christchurch, New Zealand 
> * TurboNote: http://TurboPress.com/tbnote.htm
>   -- small, FREE and very handy
> * Print-to-Web automation http://TurboPress.com
> * Web design, automation and hosting specialists
> Find all the above and MORE at http://www.spis.co.nz
> --------------------------------------------------------------------------
> -
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to