Ver Mensaje Individual
  #2 (permalink)  
Antiguo 26/01/2008, 14:27
Avatar de Adler
Adler
Colaborador
 
Fecha de Ingreso: diciembre-2006
Mensajes: 4.671
Antigüedad: 18 años, 4 meses
Puntos: 126
Re: Duda sobre Control de Inventario

Prueba con esto

cant_bot = request.form("cantidad")

if cant_bot <= 10 then
pre_unidad ="1"
pre_total = cant_bot * 1
elseif cant_bot >= "11" then
'pedido superior a 10
pre_parcial10 = 10 * 1
cant_bot11 = cant_bot - 10
pre_parcial11 = cant_bot11 * 2
pre_total = pre_parcial10 + pre_parcial11
end if

response.write pre_total

Suerte
__________________
Los formularios se envían/validan con un botón Submit
<input type="submit" value="Enviar" style="background-color:#0B5795; font:bold 10px verdana; color:#FFF;" />