Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   Varios (https://www.clubdelphi.com/foros/forumdisplay.php?f=11)
-   -   Borrar Registros De Un Tlisbox (https://www.clubdelphi.com/foros/showthread.php?t=6373)

DELPHI120 04-01-2004 22:03:25

Borrar Registros De Un Tlisbox
 
HOLA A TODOS FELIZ AÑO NUEVO,
MI PREGUNTA DE HOY ES LA SIGUIENTE;

TENGO UN FICHERO TRADICIONAL " EJEMPLO MAS.DAT "

PARA VER LOS DATOS DE DICHO FICHERO TENGO UN TLISBOX

¿ COMO PUEDO BORRAR DESDE LA LISTA TLISBOX UN REGISTRO ,
SELECCIONADO DE LA LISTA UN REGISTRO Y ACTUALIZAR EL FICHERO MAS.DAT ?

GRACIAS

delphi.com.ar 05-01-2004 15:18:48

Primero te recomiendo leer la Guía de Estilo, es un breve resumen de las normas del foro.
Para lo que tu pides, puedes eliminar una fila / línea con la siguiente sintaxis:
Código:

ListBox1.Items.Delete(...);
y luego puedes guardar los datos con
Código:

ListBox1.Items.SaveToFile(...);
Saludos!


La franja horaria es GMT +2. Ahora son las 06:11:28.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi