Not in my knowledge... I think this is the only way... even if there was
a "direct" way it would be using the same functions to return you the count
of enumerated types defined (I guess...)

Cheers
Vahan :)

-----Original Message-----
From: Andries Bos [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 17, 2005 5:51 PM
To: delphi advanced group
Subject: [delphi-en] getting enumerated count


hello

How do i get the amount of enumerated types defined:

Some code:
type
SomeEnum = (enum1, enum2, enum3);

function ABC  : integer
var AEnum : Someenum;
begin
result := ord(high(aEnum))
end;

Result will return the ordinal of the highest, but is there a direct way of
getting the count of this enum list?

Regards

andries







---------------------------------
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!

[Non-text portions of this message have been removed]



-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED]


      Yahoo! Groups Sponsor
            ADVERTISEMENT





----------------------------------------------------------------------------
----
Yahoo! Groups Links

  a.. To visit your group on the web, go to:
  http://groups.yahoo.com/group/delphi-en/

  b.. To unsubscribe from this group, send an email to:
  [EMAIL PROTECTED]

  c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.




[Non-text portions of this message have been removed]



-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to