You could just try using the commatext function of a string list... all done
for you.
...
sl := TStringList.Create;
sl.Add('one');
sl.Add('two');
sl.Add('three');
SendMsgViaUDP(sl.CommaText);
sl.Free
...
...
OnRecieveUDPMsg(s : string) do
begin
sl := TStringList.Create;
sl.CommaText := s;
for i := sl.Count - 1 do
ShowMessage(sl[i]);
..
or something like that. From what I recall commatext handles delimiters in
the string by adding double quotes. Check out the help.
> -----Original Message-----
> From: Joel van Velden [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 18, 2000 5:34 PM
> To: Multiple recipients of list delphi
> Subject: [DUG]: Packing Problem
>
>
> Hi There.
>
> Just another newbie lack-of-knowledge problem:
>
> What is the best way to communicate a bunch of strings through udp?
>
> I thought of concatenating them altogether with some symbol
> between (say &),
> but how would I go about unpacking it?
>
> Thanks in Advance
> Joel van Velden
>
> --------------------------------------------------------------
> -------------
> New Zealand Delphi Users group - Delphi List -
> [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
>
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz