Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Jul : TIdUDPServer.OnUDPRead event Parameters
| Subject: | TIdUDPServer.OnUDPRead event Parameters |
| Posted by: | "Johnnie Norsworthy" (jln2..@verizon.net) |
| Date: | Mon, 31 Jul 2006 07:57:58 |
Indy 10.0.52
I am getting the following event signature for a TIdUDPServer component for
the OnUDPReadEvent
procedure TForm1.UDPServerUDPRead(Sender: TObject; AData: TBytes; ABinding:
TIdSocketHandle);
I try the following code and get a compiler error on the BytesToString(),
"There is no overloadeded version of BytesToString that can be called with
these parameters"
var
s: string;
begin
s := BytesToString(AData);
I saw an example of something similar to the above, but the event signature
had TIdBytes instead of TBytes, which is what I see in the BytesToString()
method.
function BytesToString(ABytes: TIdBytes; AStartIndex: Integer; AMaxCount:
Integer): string;
What do I need to do?
-Johnnie