[Lazarus] Passing Enum as Parameter

DSK pnewbieii at gmail.com
Fri Feb 25 23:25:39 CET 2011


Mattias,

>>function    FindByGender(const AGender: enum): integer;
>>[DCC Error] person_bom.pas(92): E2003 Undeclared identifier: 'enum'
>>
>>Is 'enum' a valid identifier in Lazarus?
>
>Yes.
>That means: it is not a keyword you can use it as an identifier.

There is no type or declared identifier "enum" in FPC ... thanks.

>Have you searched for 'enum' in the tiOPF sources? Maybe you have to
>add a unit to your uses section.

Yes I have looked, but it's likely worth another try. I'll have to have 
another look in the remaining project files as well.

Thanks,
-- 
DSK
Posted with 1.19.1.269





More information about the Lazarus mailing list