在indy10的sendmail的demo中:
procedure TIdReply.SetCode(const AValue: string);
var
LMatchedReply: TIdReply;
begin
EIdException.IfFalse(CheckIfCodeIsValid(AValue), Format(RSReplyInvalidCode, [AValue]));
// Only check for duplicates if we are in a collection. NormalReply etc are not in collections
// Also dont check FReplyTexts, as non members can be duplicates of members
if Collection <> nil then begin
LMatchedReply := TIdReplies(Collection).Find(AValue);
EIdException.IfTrue((LMatchedReply <> nil) and (LMatchedReply <> Self)
, 'Reply already exists for ' + AValue); {do not localize}
end;
FCode := AValue;
end;
[Error] IdReply.pas(275): Undeclared identifier: 'IfFalse'
[Error] IdReply.pas(280): Undeclared identifier: 'IfTrue'
[Fatal Error] IdCmdTCPServer.pas(180): Could not compile used unit 'IdReply.pas'搜索好久也找不到答案~~~
哪位高人好心帮一下忙啊?
procedure TIdReply.SetCode(const AValue: string);
var
LMatchedReply: TIdReply;
begin
EIdException.IfFalse(CheckIfCodeIsValid(AValue), Format(RSReplyInvalidCode, [AValue]));
// Only check for duplicates if we are in a collection. NormalReply etc are not in collections
// Also dont check FReplyTexts, as non members can be duplicates of members
if Collection <> nil then begin
LMatchedReply := TIdReplies(Collection).Find(AValue);
EIdException.IfTrue((LMatchedReply <> nil) and (LMatchedReply <> Self)
, 'Reply already exists for ' + AValue); {do not localize}
end;
FCode := AValue;
end;
[Error] IdReply.pas(275): Undeclared identifier: 'IfFalse'
[Error] IdReply.pas(280): Undeclared identifier: 'IfTrue'
[Fatal Error] IdCmdTCPServer.pas(180): Could not compile used unit 'IdReply.pas'搜索好久也找不到答案~~~
哪位高人好心帮一下忙啊?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货