Ver Mensaje Individual
  #2 (permalink)  
Antiguo 11/04/2002, 22:45
Avatar de urjose
urjose
 
Fecha de Ingreso: diciembre-2001
Mensajes: 5.286
Antigüedad: 23 años, 4 meses
Puntos: 1
Re: si eval es en perl en ASP cual funcion es ???

de hecho existe la función eval pero no se si sea lo que buscas:

Cita:

FUNCTION: Eval()

--------------------------------------------------------------------------------
Implemented in version 5.0

Eval(Expression)

The Eval function takes a single argument, evaluates it as a VBScript expression, and returns the result of this evaluation.

If the expression is of the form a = b, it is treated as an equality comparison. If the comparison is true, then True is returned. Otherwise, False is returned.

There is a statement, Execute, which is similar in operation to the Eval function. Execute differs in that it interprets a string expression as one or a series of statments to be executed, and in the fact that it does not return a value.

Code:
<%
ThisVar = 5.556
AnotherVar = 5.556
%>
<% =Eval("ThisVar = AnotherVar") %>

Output:
true

Code:
<% MyVar = Eval("CInt(12345.6789)") %>
<% =MyVar %>

Output:
12345
Saludos

<center><img src="http://www.pcmasmas.com.ar/foro/images/avatars/043.gif"><br>
Urjose</center>