Atozed Forums
mcptUnknown is undeclared - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Delphi (https://www.atozed.com/forums/forum-10.html)
+--- Forum: English (https://www.atozed.com/forums/forum-13.html)
+---- Forum: Delphi General Discussion (https://www.atozed.com/forums/forum-11.html)
+---- Thread: mcptUnknown is undeclared (/thread-794.html)



mcptUnknown is undeclared - jeekanhaiya6 - 10-30-2018

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


RE: mcptUnknown is undeclared - rlebeau - 10-30-2018

(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.