8

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

Community
  • 1
  • 1
Sky
  • 4,244
  • 7
  • 54
  • 83

1 Answers1

14

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

TLama
  • 75,147
  • 17
  • 214
  • 392
David Heffernan
  • 601,492
  • 42
  • 1,072
  • 1,490
  • 1
    OT: If you were having Total Commander file manager, you might look for type definitions in *.pas files of your Delphi source directory by searching the RegEx pattern like `TIdBytes(\s*)=`, which searches `TIdBytes` followed by any count of word separator (like space and tab) and `=` symbol (it doesn't count with line breaks between type name and `=` symbol, but it's enough to find any type definition in Delphi source). Even though should be enough to search for `TypeToFind =` without RegEx. – TLama Aug 27 '13 at 13:10
  • 1
    @TLama I worked this out by doing that search inside the Delphi IDE using Find in Files feature. I don't know the first thing about Indy, as I'm sure is quite obvious to regular visitors. – David Heffernan Aug 27 '13 at 13:12