Atozed Forums

Full Version: mcptUnknown is undeclared
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I am migrating my project from delphi 2009 to delphi berlin and using Indy10 in this. 

In class IdMessageCode, it is saying undeclared Identifier mcptUnknown.

Can you explain why is it happening?

Thanks 
kanhaiya
(10-30-2018, 11:00 AM)jeekanhaiya6 Wrote: [ -> ]In class IdMessageCode, it is saying undeclared Identifier mcptUnknown.

As it should be, because mcptUnknown existed in Indy 9 only:

Code:
type
  TIdMessageCoderPartType = (mcptUnknown, mcptText, mcptAttachment);

But it no longer exists in Indy 10:

Code:
type
  TIdMessageCoderPartType = (mcptText, mcptAttachment, mcptIgnore, mcptEOF);

There is no such thing as an "unknown" type of message part in Indy 10. Most message parts that you will ever concern yourself with are either mcptText or mcptAttachment. The other part types are for Indy's internal use.