Integer li_Counter
Integer li_count
Integer li_obra
Integer li_codigo
String ls_emple
Decimal hn
Decimal hcin
Decimal he
Decimal dm
Decimal fer
Decimal dom
dw_1.accepttext( )
li_count=dw_1.rowcount( )
for li_Counter = 1 to li_count step 1
li_obra=dw_1.getitemnumber(li_counter,1)
li_codigo=dw_1.getitemnumber( li_counter,2)
ls_emple=dw_1.getitemstring( li_counter,3)
hn=dw_1.getitemdecimal( li_counter,4)
hcin=dw_1.getitemdecimal( li_counter,5)
he=dw_1.getitemdecimal( li_counter,6)
dm=dw_1.getitemdecimal( li_counter,7)
fer= dw_1.object.compute_1[ li_count ] //Campos Calculados
dom= dw_1.object.compute_2[ li_count ] //Campos Calculados
INSERT INTO t_prueba
( idobra,
codigo,
emple,
hn,
h50,
fedf,
dm,
feri,
dom)
VALUES ( :li_obra,
:li_codigo,
:ls_emple,
:hn,
:hcin,
:he,
:dm,
:fer,
:dom ) ;
if sqlca.sqlcode=0 then
commit;
else
Rollback;
Messagebox("AVISO","ERROR")
End if
Next