Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
0Activity
0 of .
Results for:
No results containing your search query
P. 1
Ejercicios VB

Ejercicios VB

Ratings: (0)|Views: 1|Likes:
Published by Feernandoo Ajcalon

More info:

Published by: Feernandoo Ajcalon on Sep 10, 2013
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

09/10/2013

pdf

text

original

 
 Ejercicios de Visual Basic Prof.: Lic. Toledo Marcelo Alejandroe-mail: mtoledo@dgrfsa.gov.ar 
1
Ejercicio 1
Dim saludo As String * 10Private Sub Command1_Click()Dim Nombre As String * 10Nombre = "Joaquim"saludo = "HOLA"Print saludo; y; NombreEnd SubPrivate Sub Command2_Click()saludo = "ADIOS"Print saludoEnd Sub
Ejercicio 2
 
 Ejercicios de Visual Basic Prof.: Lic. Toledo Marcelo Alejandroe-mail: mtoledo@dgrfsa.gov.ar 
2Private Sub Boton_dividir_Click()Dim result As Integerresult = Val(Numero_uno.Text) / Val(Numero_dos.Text)Numero_resultado.Text = Str(result)End SubPrivate Sub Boton_multiplicar_Click()Dim result As Integerresult = Val(Numero_uno.Text) * Val(Numero_dos.Text)Numero_resultado.Text = Str(result)End SubPrivate Sub Boton_restar_Click()Dim result As Integerresult = Val(Numero_uno.Text) - Val(Numero_dos.Text)Numero_resultado.Text = Str(result)End SubPrivate Sub Boton_salir_Click()EndEnd SubPrivate Sub Boton_Sumar_Click()Dim result As Integerresult = Val(Numero_uno.Text) + Val(Numero_dos.Text)Numero_resultado.Text = Str(result)End Sub
Ejercicio 3
 
 Ejercicios de Visual Basic Prof.: Lic. Toledo Marcelo Alejandroe-mail: mtoledo@dgrfsa.gov.ar 
3Private Sub Command1_Click()Dim result, resulta As Doubleresult = Val(Text1.Text) * (60)Text2.Text = Str(result)resulta = Val(Text2.Text) * (60)Text3.Text = Str(resulta)End SubPrivate Sub Command2_Click()EndEnd Sub
Ejercicio 4
Private Sub Azul_Click()Texto.ForeColor = &HFF0000End SubPrivate Sub Command1_Click()EndEnd SubPrivate Sub Cursiva_Click()Texto.FontItalic = TrueTexto.FontBold = FalseEnd SubPrivate Sub Form_Load()Normal.Value = TrueAzul.Value = TrueTexto.FontBold = FalseTexto.FontItalic = FalseTexto.ForeColor = &HFF0000End Sub

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->