[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 = (dbgAMI, dbgRemoteLinks);
var
dbgActiveOptions: set of dbgOptions;
procedure SetupDefaultvars;
begin
dbgActiveOptions := [];
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
=======================
http://devblog.brahmancreations.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20100905/3b076e28/attachment.html>
More information about the fpc-pascal
mailing list