22-11-2011, 09:03 PM
تعديل على Resolution control.rar
تشكر اخي على المثال
كود :
procedure TForm1.ListBox1Click(Sender: TObject);
var
S, V: String;
Sindex,Vindex:integer;
begin
Sindex:=pos(',',ListBox1.Items[ListBox1.ItemIndex]);
Vindex:=pos('x',ListBox1.Items[ListBox1.ItemIndex]);
S:= copy(ListBox1.Items[ListBox1.ItemIndex], Sindex + 2, 4);
V := copy(ListBox1.Items[ListBox1.ItemIndex], Vindex + 2, 4);
Edit1.Text := TrimLeft(S);
Edit2.Text := TrimLeft(V);
end;تشكر اخي على المثال

