Club Delphi  
    FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > Varios
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

Grupo de Teaming del ClubDelphi

 
 
Herramientas Buscar en Tema Desplegado
  #1  
Antiguo 18-10-2007
Rasecma Rasecma is offline
Registrado
 
Registrado: oct 2007
Posts: 2
Poder: 0
Rasecma Va por buen camino
ayuda stringgrid

como puedo usar stringgrid con suma de vectores, tengo un problema con el siguiente codigo:

procedure TForm1.Button1Click(Sender: TObject);
type
vect=array[1..10] of integer;
var
c:integer;
VectorC:TStringGrid;
a,b,r:vect;
begin
VectorC:=TStringGrid.create(Form1);
with VectorC do
begin
Colcount:=5;
RowCount:=1;
Left:=48;
Top:=220;
Height:=50;
Width:=320;
DefaultColwidth:=25;
DefaultRowHeight:=20;
FixedCols:=0;
FixedRows:=0;
parent:=form1;
end;
for c := 0 to vectorA.ColCount-1 do
begin
a[c]:=strtoint(vectorA.Cells[0,c]);
b[c]:= StrToInt(VectorB.Cells[0,c]);
r[c]:=a[c]+b[c];
vectorc.Cells[0,c]:=inttostr(r[c]);
end;
end;
Responder Con Cita
 



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
Ayuda con Stringgrid sexshop_3 Varios 7 24-08-2007 01:01:10
Ayuda Stringgrid peripla Varios 2 25-06-2007 17:11:17
Ayuda con StringGrid BuenaOnda Varios 2 23-05-2007 09:12:47
Ayuda en el Uso del StringGrid doncowboy OOP 2 24-04-2007 19:26:33
Ayuda con Stringgrid estebanx OOP 4 01-06-2006 20:20:24


La franja horaria es GMT +2. Ahora son las 09:58:19.


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