[Lazarus] System.Enum.GetNames

silvioprog silvioprog at gmail.com
Fri Aug 3 22:18:36 CEST 2012


2012/8/3 silvioprog <silvioprog at gmail.com>:
> Hellow! :)
>
> How to I get a list of the names of a specified enumeration type? Eg:
>
> http://www.delphibasics.co.uk/Method.asp?NameSpace=System&Class=Enum&Type=Class&Method=GetNames
>
> I'm trying to create a function *similar* to implode function of PHP,
> but to work with enums.
>
> Thx.

Solved!:

TypInfo.GetEnumName();

Thx. ^^

-- 
Silvio Clécio
My public projects - github.com/silvioprog




More information about the Lazarus mailing list