Ver Mensaje Individual
  #1 (permalink)  
Antiguo 24/07/2002, 05:02
sweet2002
 
Fecha de Ingreso: julio-2002
Mensajes: 20
Antigüedad: 22 años, 9 meses
Puntos: 0
Urgente!!!!!!!!!!!!!!!!!!!!!!!!

TENGO Q MODIFICAR UN PROYECTO Y VEO Q ME VUELCA TODOS LOS DATOS EN VARIABLES DE SESION. POSTERIORMENTE TENGO Q RECOGER LOS VALORES Q TIENEN DICHAS VARIABLES EN OTRA PAGINA PARA INSERTARLA EN UNA BASE DE DATOS.
COMO LOO HAGO???
POR OTRA PARTE NO ME FUNCIONA O MEJOR DICHO, NO ME DA LA OPCION DE BORRAR EL CONTENIDO DE DICHA SESION, POR LO Q AL TRATARSE DE UN CARRITO DE LA COMPRA ME PUEDE EMPEZAR A ALMACENAR UN MONTON DE VALORES DE COMPRAS ANTERIORES, NO???
POR FAVOR, ES MUY URGENTE!!!!
OS PONGO UN TROZO DE CODIGO, PARA Q VEAIS COMO RECOGE LOS VALORES Y ME DIGAIS Q HE DE HACER PARA MOSTARLO.
COMO VEREIS SON MATRICES, EN DONDE ALMACENA LOS DATOS (OS LO DIGO PQ SUPONGO Q TENDRAN OTRO TRATAMIENTO)
Dim d
dim iciclo
dim dblimporte
dim arrsuma
dim dblcantidad
dim dblprecio
dim total
dim matsuma
dim subtotal
dim totalprecio
for iciclo=lbound(matrix101) to ubound(matrix101)
if trim(matrix101(iciclo))<>"" then
Response.Write ("<td align=center>") & matrix101(iciclo) & ("</td>")
Response.Write ("<td align=center>") & session("codigo")(iciclo+1) & ("</td>")
Response.Write ("<td align=center>") & session("des")(iciclo+1) & ("</td>")
Response.Write ("<td align=right>") & session("precio")(iciclo+1) & ("</td>")
dblcantidad= Cdbl(trim(session("cantidad")(iciclo)))
dblprecio= cdbl(trim(session("precio")(iciclo+1)))
Dblimporte= (dblcantidad * dblprecio)
suma1=suma1+dblprecio
unidad1=unidad1 + dblcantidad
total1=total1+dblimporte
Response.Write ("<td align=right>") & dblimporte & ("</td><tr>")

end if

next