can sumone please help me out I got a problem with my userlist below is the login funcation for my simple lanchat it funcation is to send client id information to the client software the way I want it to work is so that when a person connects to the chat i sends his data to himself then broadcasts his current user id to any other clients connected.
the problem is it only adds the users on the newer client here a image to show you [img=http://www.zolahosting.com/delphi.jpg]
what the problem is .
if anyone can help me i will be grateful thanks alot
//oo Login Procedure ooooooooooooooooooooooooooooooooooooooooooooooooooooo
if com = 'Login' then
username := dat; // your current user id
if MainForm.ListBox1.Items.IndexOf(username) >= 0 then