Laburo España: 250.000 ofertas de empleo

Lunes, 08 de mayo de 2006

Cuidado con el programador

No puedo revelar cómo di con este código pero realmente no da para acreditar: es en ASP (viejo) y la idea parece ser crear una variable para cada campo del registro.

'create variables
For i = 0 To rst.Fields.Count - 1
'response.write rst.Fields(i).Name
'session(rst.Fields(i).Name) = rst(i)
if isnumeric(rst(i)) then
TheString = rst.Fields(i).Name & "=" & rst(i)
else
TheString = rst.Fields(i).Name & "=""" & rst(i) & """"
end if
Execute(TheString)

Por: Ignacio Nicolás Rodríguez | Programar | Comentarios (2) | Referencias (0)

Comentarios

Xel-ha | 09-05-2006 12:25:19

Me la borro en el post anterior, era esta imagen:
http://www.101hollywood.com/2gun.jpg

Xel-ha | 09-05-2006 12:26:19

Comentar


Recordar datos

LaInformacion.com lainformacion.com - Medio Oficial de los Premios Bitacoras 2009