Ver Mensaje Individual
  #2  
Antiguo 16-12-2006
Avatar de dec
dec dec is offline
Moderador
 
Registrado: dic 2004
Ubicación: Alcobendas, Madrid, España
Posts: 13.107
Reputación: 34
dec Tiene un aura espectaculardec Tiene un aura espectacular
Hola,

Podría resultar más o menos así, siguiendo el ejemplo de la ayuda de Delphi para la propiedad "Selected" de "TCustomListBox":

Código Delphi [-]
var
  s: string;
  i: integer;
begin
  if FileListBox1.SelCount > 0 then
  begin
    for i := 0 to FileListBox1.Count-1 do
    begin
      if FileListBox1.Selected[i] then
      begin
        s := s + FileListBox1.Items[i] + #13#10;
      end;
    end;
    ShowMessage(s);
  end;
end;
__________________
David Esperalta
www.decsoftutils.com
Responder Con Cita