Club Delphi  
    Paypal   FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > OOP
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
  #4  
Antiguo 02-09-2004
Avatar de naker
naker naker is offline
Miembro
 
Registrado: nov 2003
Ubicación: Tandil, BsAs, Argentina
Posts: 12
Poder: 0
naker Va por buen camino
Detalle.Cells[0,indiceGrid]:=Cant.Text;
Detalle.Cells[1,indiceGrid]:=CodProducto.Text;
Detalle.Cells[2,indiceGrid]:=DbGrid.DataSource.DataSet.Fields[1].AsString; //descripcion
Detalle.Cells[3,indiceGrid]:=DbGrid.DataSource.DataSet.Fields[2].AsString; //precio unitario
Detalle.Cells[4,indiceGrid]:=FloatToStr(StrToFloat(Cant.Text)*StrToFloat(DbGrid.datasource.DataSet.Fields[2].AsString)); //subtotal
total.Text:=FloatToStr(StrToFloat(total.Text) + StrToFloat(Detalle.Cells[4,indiceGrid]));
indiceGrid:=indiceGrid+1;
Detalle.RowCount:=indiceGrid;

donde indiceGrid es una variable global que lleva el indice en donde debo insertar el nuevo elemento..
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


La franja horaria es GMT +2. Ahora son las 22:53:20.


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