Club Delphi  
    FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > Conexión con bases de datos
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

Conexión con bases de datos

 
 
Herramientas Buscar en Tema Desplegado
  #3  
Antiguo 31-08-2017
johnny_jjc johnny_jjc is offline
Registrado
 
Registrado: mar 2010
Posts: 4
Poder: 0
johnny_jjc Va por buen camino
Thumbs up

gracias Amigo roman.

te explico mas a detalle para tu gentil colaboracion.

Nombre tabla: AVALUOS
Campos
predio A 25
2010 N
2011 N
2012 N
2013 N
2014 N
2015 N
2016 N
2017 N
************************
Resultado: Llenar un Grid

Vigencia Avaluo Impuesto
2010 XXXX1 YYYYY1
2011 XXXX2 YYYYY2
........
2017 XXXX8 YYYYY8

********************************

Actualmente

NVigencias:=8;

FOR VANO:=1 TO NVigencias DO
BEGIN

GRIDLIQUIDACION.CELLS[1,I]:=inttostr(2010+I);


GRID:= GRIDLIQUIDACION.CELLS[1,I];

CASE GRID OF

//************ 2010

2010: begin
GRIDLIQUIDACION.CELLS[2,I]:=strtoint(TAvaluos['2010']);
GRIDLIQUIDACION.CELLS[3,I]:=CALCULARIMPUESTO(TAvaluos['2010']);
end;

EN TOTAL SON 8 VIGENCIAS >>> OBSERVANDO PODRIA REDUCIR TODO EL CASE DE LA SIGUIENTE MANERA:

FOR VVIGENCIA:=2010 TO 2017
begin
GRIDLIQUIDACION.CELLS[2,I]:=strtoint(TAvaluos[VVIGENCIA]);
GRIDLIQUIDACION.CELLS[3,I]:=CALCULARIMPUESTO(TAvaluos[VVIGENCIA]);
end;

PERO ME MARCA ERROR >>> QUISIERA REEMPLAZAR TAvaluos['2010'] POR TAvaluos[VVIGENCIA]
COMO RREMPLAZO EN NOMBRE DEL CAMPO POR UN PARAMETRO????....
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
recorrer componentes NEG1414 C++ Builder 12 11-12-2007 05:50:43
Parametros Opcionales no Parametros por defecto Velia Varios 7 19-08-2006 15:18:42
Recorrer Archivo INI Coco_jac OOP 6 27-06-2006 20:01:15
recorrer string emiliu Varios 2 16-11-2005 10:23:25
Recorrer un Treeview mateamargo OOP 0 11-11-2003 16:53:39


La franja horaria es GMT +2. Ahora son las 01:29:35.


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