[Lazarus] Passing Enum as Parameter
Mattias Gaertner
nc-gaertnma at netcologne.de
Fri Feb 25 22:55:02 CET 2011
On Fri, 25 Feb 2011 19:05:37 +0000 (UTC)
"DSK" <pnewbieii at gmail.com> wrote:
> Tired of thunking my head against the monitor trying to figure this out.
> I'm trying to port a tool written in Lazarus to Delphi. The tool uses
> tiOPF is called tiMapper and I'm trying to build the accompanying test
> unit. One of the huge number of compile errors I'm trying to sort out is:
> 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.
> Sorry but F1 provides nothing and google comes back with 17 bazillion hits
> and not one means a damn thing to me.
Have you searched for 'enum' in the tiOPF sources? Maybe you have to
add a unit to your uses section.
Mattias
More information about the Lazarus
mailing list