Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 May : Re: Basic newbie Indy 10 problems
| Subject: | Re: Basic newbie Indy 10 problems |
| Posted by: | "John Carlyle-Clarke" (jpcc@removethis.bigfoot.com) |
| Date: | 12 May 2006 03:27:09 |
"Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> wrote in
news:44645e32$6@newsgroups.borland.com:
>
> "John Carlyle-Clarke" <jpcc@removethis.bigfoot.com> wrote in
> message news:Xns97C16975FDC34discombobulation@207.105.83.66...
>
>> if (FUseTLS in ExplicitTLSVals) and (not LContent.UsingTLS)
>> then
>> begin
>>
>> should read:
>>
>> if (FUseTLS in ExplicitTLSVals) and (not LContext.UsingTLS)
>> then
>> begin
>
> Those two lines are identical, and there is no typo in the
> original anyway. Why do you think that there is?
No they are not. The first one says "LContent", the second says
"LContext".
>
>> if not LContext.SMTPState in [idSMTPMail, idSMTPRcpt] then
>> begin
>>
>> should read:
>>
>> if not (LContext.SMTPState in [idSMTPMail, idSMTPRcpt]) then
>> begin
>
> That is not a typo. The parenthesis are not required.
>
>> Otherwise it fails to compile.
>
> Please be more specific. What are the EXACT error messages?
"Operator not applicable to this operand type".
From D5 help:
Operators Precedence
--------- ----------
@, not first (highest)
*, /, div, mod, and, shl, shr, as second
+, –, or, xor third
=, <>, <, >, <=, >=, in, is fourth (lowest)
The not takes precedence, and cannot apply to an enum.