Jump to content

Ayuda Con Codigo VBSCRIPT


Recommended Posts

Eh Creado un Programa en visual basic Script, pero no funciona.

Lo que debe hacer el programa es ingresar un numero, y luego mostrar, los numeros del 1 al numero ingresado.

Ejemplo: ingresado 5... 1 2 3 4 5 Asi

Como deberia de corregir mi programa para que funcione.

Aqui el Codigo

 

 

 

 

 

 

<html>

<body>

<center>

<script language="vbscript">

sub lista()

dim n, r

n=datos.txt_num value

for r = 1 to n

document.write®

document.wrie("<p>")

next r

 

end sub

 

</script>

<body>

<form name = "datos">

<center>

 

Numeros<p>

<input type="text" name="txt_num" value="">

<p>

<input type="button" name="cmd_calcular" value="Aceptar" onclick=lista()">

</center>

</form>

</body>

</html>

 

Ojala que sepan ayudarme

Edited by Exorcista12
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...