hacker


Ingresar con nombre de usuario, contraseña y duración de la sesión
| Portal Hacker | Editorial | Descargas | Ezine |
Inicio Ayuda Ingresar Registrarse
07 de Octubre de 2008, 09:42:40
Noticias: La 1era E-Zine de CPH ya fue liberada, encuentrala
Para ver este enlace Registrate o Inicia Sesion
> aquí

+  Foros pOrtal Hacker
|-+  Programacion
| |-+  Programación en general
| | |-+  Visual Basic
| | | |-+  Codigo Abierto (Moderador: >> s E t H <<)
| | | | |-+  Calculadora en 1/2 hora
0 Usuarios y 1 Visitante están viendo este tema. « anterior próximo »
Páginas: [1] Ir Abajo Imprimir
Autor Tema: Calculadora en 1/2 hora  (Leído 304 veces)
Pasqui
NZ3
***
Desconectado Desconectado

Mensajes: 559


El saber no es suficiente, debemos aplicarlo


Ver Perfil
« : 10 de Abril de 2008, 02:17:25 »

Eso tarde en hacerla, juaaaaaaaaaa, quizas, menos, recuerdo tenía al pequeño Daniel en brazos, mientras, programaba esta Calculadora




Para ver este enlace Registrate o Inicia Sesion
Codigo Fuente


Código:
Public valorini As Double
Public valorfin As Double
Public ante As Double
Public opera As Integer
Public topera As String
Public memor As Double
Public num As Integer
Private Sub boton_Click(Index As Integer)
Select Case Index
Case 0
    If opera <> 0 Then
        Tbtexto.Text = ""
        Tbtexto = Tbtexto & boton(0).Caption
        opera = 0
    Else
        Tbtexto = Tbtexto & boton(0).Caption
    End If
Case 1
    If opera <> 0 Then
        Tbtexto.Text = ""
        Tbtexto = Tbtexto & boton(1).Caption
        opera = 0
    Else
        Tbtexto = Tbtexto & boton(1).Caption
    End If
Case 2
    If opera <> 0 Then
        Tbtexto.Text = ""
        Tbtexto = Tbtexto & boton(2).Caption
        opera = 0
    Else
        Tbtexto = Tbtexto & boton(2).Caption
    End If
Case 3
    If opera <> 0 Then
        Tbtexto.Text = ""
        Tbtexto = Tbtexto & boton(3).Caption
        opera = 0
    Else
        Tbtexto = Tbtexto & boton(3).Caption
    End If
Case 4
    If opera <> 0 Then
        Tbtexto.Text = ""
        Tbtexto = Tbtexto & boton(4).Caption
        opera = 0
    Else
        Tbtexto = Tbtexto & boton(4).Caption
    End If
Case 5
    If opera <> 0 Then
        Tbtexto.Text = ""
        Tbtexto = Tbtexto & boton(5).Caption
        opera = 0
    Else
        Tbtexto = Tbtexto & boton(5).Caption
    End If
Case 6
    If opera <> 0 Then
        Tbtexto.Text = ""
        Tbtexto = Tbtexto & boton(6).Caption
        opera = 0
    Else
        Tbtexto = Tbtexto & boton(6).Caption
    End If
Case 7
    If opera <> 0 Then
        Tbtexto.Text = ""
        Tbtexto = Tbtexto & boton(7).Caption
        opera = 0
    Else
        Tbtexto = Tbtexto & boton(7).Caption
    End If
Case 8
    If opera <> 0 Then
        Tbtexto.Text = ""
        Tbtexto = Tbtexto & boton(8).Caption
        opera = 0
    Else
        Tbtexto = Tbtexto & boton(8).Caption
    End If
Case 9
    If opera <> 0 Then
        Tbtexto.Text = ""
        Tbtexto = Tbtexto & boton(9).Caption
        opera = 0
    Else
        Tbtexto = Tbtexto & boton(9).Caption
    End If
Case 10
    num = Len(Tbtexto.Text)
    Tbtexto.Text = Mid(Tbtexto, 1, num - 1)
Case 11
    valorini = 0
    memor = 0
    Tbtexto.Text = ""
Case 12
    valorini = Tbtexto.Text
    opera = 1
    topera = "/"
Case 13
    valorini = Tbtexto.Text
    opera = 1
    topera = "+"
Case 14
    valorini = Tbtexto.Text
    opera = 1
    topera = "-"
Case 15
    ante = Tbtexto.Text
    valorini = Tbtexto.Text
    opera = 1
    topera = "*"

Case 16
    If topera = "/" Then
        valorfin = valorini / Tbtexto.Text
        Tbtexto.Text = valorfin
    ElseIf topera = "+" Then
        valorfin = valorini + Tbtexto.Text
        Tbtexto.Text = valorfin
    ElseIf topera = "-" Then
        valorfin = valorini - Tbtexto.Text
        Tbtexto.Text = valorfin
    ElseIf topera = "*" Then
        valorfin = valorini * Tbtexto.Text
        Tbtexto.Text = valorfin
    End If
    valorini = 0
Case 17
    memor = 0
Case 18
    memor = Tbtexto.Text
Case 19
    Tbtexto = Tbtexto & "."
Case 20
    Tbtexto = Tbtexto & ","
Case 21
    Tbtexto.Text = (Tbtexto.Text * 100) / ante
Case 22
    Tbtexto.Text = memor
End Select
End Sub

Private Sub Form_Activate()
Tbtexto.SetFocus
opera = 0
End Sub

Private Sub Form_Load()
'tbtexto.SetFocus
End Sub



saludos,

En línea


carlmycol
Colaborador
****
Desconectado Desconectado

Mensajes: 1,073


¡Dame 10 Hackers y Dominare al Mundo!


Ver Perfil
« Respuesta #1 : 10 de Abril de 2008, 03:45:16 »

Wow esta muy buena  Shocked y lo giciste con un solo textbox !   Shocked muy buena felicidades!!  Grin

salu2
En línea




Para ver este enlace Registrate o Inicia Sesion
Faqs de Desarrollo Web
|
Para ver este enlace Registrate o Inicia Sesion
Guia de posicionamient o en la SEO
|
Para ver este enlace Registrate o Inicia Sesion
Como ser un Webmaster
|
Para ver este enlace Registrate o Inicia Sesion
Porque validar CSS y XHTML

 
Para ver este enlace Registrate o Inicia Sesion
Manual de HTML
|
Para ver este enlace Registrate o Inicia Sesion
Manual de PHP
sable
NZ1
*
Desconectado Desconectado

Mensajes: 100


Todo lo k aces tiene su resultado en el futuro


Ver Perfil
« Respuesta #2 : 27 de Junio de 2008, 03:15:14 »

porke no hiciste otra kosa... porke no pusiste en cada boton lo que tenia que hacer?? es mas facil, asi hice yo la mia
En línea


  ·programador, o algo asi... para algunos soy hacker... pero esos son unos lammers... yo soy... no se lo que soy
  · Hay ke ver TODO como algo divertido... no lo hagas por joder hazlo por aprender
  ·kuando termine el time of kill os informare de todo
  ·pronto seree el mas grandee ¡¡¡uahahahahaha!!!
Pasqui
NZ3
***
Desconectado Desconectado

Mensajes: 559


El saber no es suficiente, debemos aplicarlo


Ver Perfil
« Respuesta #3 : 22 de Julio de 2008, 05:36:53 »

cada botón con su nombre, creí que así seria sencillo,

saludos,
En línea


Páginas: [1] Ir Arriba Imprimir 
« anterior próximo »
Ir a:  


Ingresar con nombre de usuario, contraseña y duración de la sesión

Powered by SMF 1.1.6 | SMF © 2006-2008, Simple Machines LLC hacker

Juegos gratis - Articulos PHP - Juegos - Trucos - Letras - Juegos - Juegos Online