Documente Academic
Documente Profesional
Documente Cultură
vbs
MsgBox "Advertencia", 5
texto = "GG"
Ciclo.vbs
Dim x
x=1
Do While x<=5
MsgBox("Welcome.")
x=x+1
Loop
Space.vbs
Dim txt
txt=Space(100)
AbrirCalculadora.vbs
objShell.Run "Calc.exe"
variables.vbs
Dim variable1,variable2,variable3
variable1="ELSA"
variable2 ="YAYIN"
MsgBox variable1
MsgBox variable2
variable3 ="Z"
MsgBox variable3
Ciclo2.vbs
Dim nombre,length
length = Len(nombre)
document.write lenght
MensajeDeBienvenida.vbs
Sub mensajedesalida()
MsgBox("Welcome")
End sub
Comprar.vbs
msgbox(StrComp(string1,string2))
PruebaHTML.vbs
<html>
<head>
</head>
<body>
<script type ="text/vbscript">
</body>
</html>
Vocales.vbs
Dim nombre,length
length = Len(nombre)
For i = 1 to length
txt = Mid(nombre,i,1)
If txt= "a" or txt= "A" or txt = "e" or txt= "E" or txt = "i" or txt="I" or txt= "o" or txt= "O" or txt= "u" or
txt= "U" THEN
counter = counter+1
End If
Next
MsgBox ("Hola " & nombre & " tu nombre contiene " & counter & " vocales" )
String.vbs
Dim txt
msgbox(StrReverse(txt))
AreaCirculo.vbs
const pi=3.14
area = pi*radius*radius
findArea = area
End function
MsgBox("El area de tu circulo cuando el radio es " & radius & " es de " & findArea(radius) & " ")
ValidandoEdad2.vbs
day = Date()
If today=1 Then
MsgBox("Today is Sunday")
MsgBox("Today is Tuesday")
MsgBox("Today is Wednesday")
MsgBox("Today is Thursday")
MsgBox("Today is Friday")
MsgBox("Today is Saturday")
End IF
Mensaje.vbs
Fecha.vbs
day = Date()
If today=1 Then
MsgBox("Today is Sunday")
MsgBox("Today is Tuesday")
MsgBox("Today is Wednesday")
MsgBox("Today is Thursday")
MsgBox("Today is Friday")
MsgBox("Today is Saturday")
End IF
Nombres.vbs
Dim contador
arrNombres(0)="Dayanne"
arrNombres(1)="Roberto"
arrNombres(4)="Gerardo"
arrNombres(2)="Bladimir"
arrNombres(3)="Edson"
CicloDoLoop
CicloWhile
Sub CiclodoLoop
contador=0
Do
MsgBox arrNombres(contador)
contador= contador + 1
End Sub
Sub CicloWhile
contador =0
MsgBox arrNombres(contador)
contador= contador + 1
wend
End Sub
ForNext
ForEachNext
Sub ForNext
MsgBox arrNombres(contador)
next
End Sub
Sub ForEachNext
Dim element
msgBox element
next
End sub
Manipulacion.vbs
string1 = "one two three four one two three four one two three four"
msgbox resultado