[fpc-pascal] How do you test for set membership?

Frank Church vfclists at gmail.com
Sun Sep 5 15:05:30 CEST 2010


I have this code:

type
    dbgOptions =3D (dbgAMI, dbgRemoteLinks);

var
  dbgActiveOptions: set of dbgOptions;


procedure SetupDefaultvars;
begin
  dbgActiveOptions :=3D [];
end;

Running the code below produces this error message:
rcacsbilling.pas(3660,25) Error: Identifier not found "dbgRemoteLinks"

      if [dbgRemoteLinks] in dbgActiveOptions then
        mmoURLPageContent.Lines.AddStrings(procList);

Is that the wrong syntax in FreePascal?



-- =

Frank Church

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
http://devblog.brahmancreations.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freepascal.org/lists/fpc-pascal/attachments/20100905/3b07=
6e28/attachment.htm


More information about the fpc-pascal mailing list