Indy 10: Undeclared Identifier 'TIdBytes'

Sky picture Sky · Aug 27, 2013 · Viewed 12.7k times · Source

Sorry if my question is silly!

I'm using Delphi XE4 and now I'm working on IdTelnet. But I got a problem with OnDataAvailable event. Take a look at this picture:

enter image description here

So I cannot work with OnDataAvailable Event.

Is this because of Delphi XE4? And How can I fix it?

Thanks

Answer

David Heffernan picture David Heffernan · Aug 27, 2013

The TIdBytes type is declared in the IdGlobal unit. Add that unit to your uses clause.