[fpc-pascal] How do you test for set membership?
Frank Church
vfclists at gmail.com
Sun Sep 5 16:09:02 CEST 2010
On 5 September 2010 14:48, Jonas Maebe <jonas.maebe at 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 then
> > mmoURLPageContent.Lines.AddStrings(procList);
> >
> > Is that the wrong syntax in FreePascal?
>
> The syntax is wrong, but it should give a different error message. "in"
> expects a set *element* on the left hand side, why you are using a set. It
> should read:
> if dbgRemoteLinks in dbgActiveOptions then
>
> Even then, I'm not sure whether that will make it compilable if the
> compiler really cannot find the dbgRemoteLinks identifier. Did you include
> the unit that defines it in the uses clauses?
>
>
My error. dbgRemoteLinks was in a separate types unit and I hadn't included
it yet.
Thanks
>
> Jonas_______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
--
Frank Church
=======================
http://devblog.brahmancreations.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20100905/a7d512e1/attachment.html>
More information about the fpc-pascal
mailing list