ayuda con esta diferencia de codigo

miguel
04 de Mayo del 2009
ola amigos .. estoy recien interiorizandome en la programacion de visual basic .. q necesito aprender para mi tesis ..y he estado bien colgado con los manuals q hay en internet .. .. el asunto es q si me podran decir cual es la diferencia estre estos 2 codigos .. que cuando lo arranco da lo mismo :
codigo 1:
Option Explicit
Dim mistring As String
Dim mientero As Integer
Dim miobjeto As Control


Private Sub Command1_Click()
Set miobjeto = Command1
Label1 = TypeName(mistring)
Label2 = TypeName(mientero)
Label3 = TypeName(miobjeto)

End Sub

Private Sub Command2_Click()
Dim mivariable As String
mivariable = IIf(CLng(text1.Text) > 100, "es mayor", "es menor")
Label1 = mivariable

End Sub
codigo 2:
Option Explicit
Dim mistring As String
Dim mientero As Integer
Dim miobjeto As Control
Dim mivariable As String


Private Sub Command1_Click()
Set miobjeto = Command1
Label1 = TypeName(mistring)
Label2 = TypeName(mientero)
Label3 = TypeName(miobjeto)

End Sub

Private Sub Command2_Click()

mivariable = IIf(CLng(valor) > 100, "es mayor", "es menor")
Label1 = mivariable

End Sub

lo q hice fue cambiar la declaracion de l variable MIVARIABLE hacia arriba y donde doce TEXT1.TEXT lo cambie a VALOR ( cambie el nombre de la caja de texto de TEXT1 ---> VALOR)
pd= no se cmo mandarles un dibujo dle entorno

espero q me hyan entendido xd y me ayuden graciass