Posted: Mon May 04, 2009 6:29 pm Post subject: [Delphi 7] Help Needed Please ; ComboBoxes
Ok, I am attempting to have a ComboBox instead of several buttons on my form. I would like for when a certain item is selected within it( lets say 'Summon Player") to send the packet below( not the procedure parts, just the "If" etc.):
Code:
procedure TMain.ComboBox1Change(Sender: TObject);
begin
If (Main.ComboBox1.Text = 'SummonPlayer') then
Send1packet('%xt%zm%gp%1%ps%'+Edit1.Text+'%');
end;
And so on for other options, I have tried this and it doesn't work, can anyone assist me on this matter? It would be very helpful and I would appreciate it. Or if anyone has any suggestions on the matter that might help I would appreciate them as well. Thank you. _________________
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum