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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...