Club Delphi  
    Paypal   FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > Varios
Registrarse FAQ Miembros Calendario Guía de estilo Buscar Temas de Hoy Marcar Foros Como Leídos

Coloboración Paypal con ClubDelphi

 
 
Herramientas Buscar en Tema Desplegado
  #3  
Antiguo 24-10-2006
Avatar de seoane
[seoane] seoane is offline
Miembro Premium
 
Registrado: feb 2004
Ubicación: A Coruña, España
Posts: 3.717
Poder: 26
seoane Va por buen camino
Aquí tienes otra forma de hacerlo:

Código Delphi [-]
// Para guardar
var
  i: integer;
begin
  with TStringList.Create do
  try
    for i:= 0 to StringGrid1.RowCount - 1 do
      Add(StringGrid1.Rows[i].CommaText);
    SaveToFile('d:\1.txt');
  finally
    Free;
  end;
end;


//Para recuperar
var
  i: integer;
begin
  with TStringList.Create do
  try
    LoadFromFile('d:\1.txt');
    StringGrid1.RowCount:= Count;
    for i:= 0 to Count - 1 do
      StringGrid1.Rows[i].CommaText:= Strings[i];
  finally
    Free;
  end;
end;
Responder Con Cita
 


Herramientas Buscar en Tema
Buscar en Tema:

Búsqueda Avanzada
Desplegado

Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro

Temas Similares
Tema Autor Foro Respuestas Último mensaje
Uso del StringGrid destrukthor Varios 2 08-06-2006 14:00:20
StringGrid giank_s OOP 3 02-12-2004 14:58:29
StringGrid DCErick OOP 1 28-11-2004 04:34:05
StringGrid jaime cotino OOP 6 26-05-2004 15:51:55
StringGrid acertij022 OOP 1 07-10-2003 03:43:26


La franja horaria es GMT +2. Ahora son las 16:41:05.


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