Jim, I dodnt answer your second question.  The position of an element 
in a set is meaningless concept.  The value of an element is its 
enumerated type ordinal number (if you have defined it as such).

set of char is #00...#$FF
set of alpha, where alpha is ('A'..'Z') means that 'A' occupies bit0


On 19 Feb 99 at 14:01, Jim Zheng wrote:

> Hi all,
> 
> Does anyone know how to get the number of element in a set and how to know
> the value stored in first, second .. position of a set easily?
> 
> I know we can loop through the whole set, but is there any faster way?
> 

Rohit

======================================================================
CFL - Computer Fanatics Ltd.  21 Barry's Point Road, AKL, New Zealand
PH    (649) 489-2280 
FX    (649) 489-2290
email [EMAIL PROTECTED]  or  [EMAIL PROTECTED]
======================================================================

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to