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

2010-09-05 Thread Frank Church
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

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

2010-09-05 Thread Jonas Maebe
On 05 Sep 2010, at 15:05, Frank Church wrote: 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

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

2010-09-05 Thread Michael Fuchs
Frank Church schrieb: if [dbgRemoteLinks] in dbgActiveOptions then mmoURLPageContent.Lines.AddStrings(procList); Try if dbgRemoteLinks in dbgActiveOptions then WriteLn('Yes'); htht Michael ___ fpc-pascal maillist -

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

2010-09-05 Thread Frank Church
On 5 September 2010 14:48, Jonas Maebe jonas.ma...@elis.ugent.be wrote: On 05 Sep 2010, at 15:05, Frank Church wrote: Running the code below produces this error message: rcacsbilling.pas(3660,25) Error: Identifier not found dbgRemoteLinks if [dbgRemoteLinks] in dbgActiveOptions