Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   Varios (https://www.clubdelphi.com/foros/forumdisplay.php?f=11)
-   -   ayuda stringgrid (https://www.clubdelphi.com/foros/showthread.php?t=49305)

Rasecma 18-10-2007 07:34:34

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;

Neftali [Germán.Estévez] 18-10-2007 10:12:56

Cita:

Empezado por Rasecma (Mensaje 239369)
como puedo usar stringgrid con suma de vectores, tengo un problema con el siguiente codigo

¿Y el problema que tienes con el código es.......?


La franja horaria es GMT +2. Ahora son las 04:40:23.

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