home *** CD-ROM | disk | FTP | other *** search
/ PCMania 10 / Pcmania_Ep2_10_CD-01.iso / ARTICULOS / pc_practico / visual_basic / Ejemplos / Depurar / Depurar.frm (.txt) next >
Encoding:
Visual Basic Form  |  2000-07-13  |  1.6 KB  |  62 lines

  1. VERSION 5.00
  2. Begin VB.Form Depurar 
  3.    Caption         =   "Depurar"
  4.    ClientHeight    =   1365
  5.    ClientLeft      =   60
  6.    ClientTop       =   345
  7.    ClientWidth     =   3390
  8.    LinkTopic       =   "Form1"
  9.    ScaleHeight     =   1365
  10.    ScaleWidth      =   3390
  11.    StartUpPosition =   3  'Windows Default
  12.    Begin VB.CommandButton Salir 
  13.       Caption         =   "Salir"
  14.       Height          =   495
  15.       Left            =   1920
  16.       TabIndex        =   3
  17.       Top             =   720
  18.       Width           =   1215
  19.    End
  20.    Begin VB.CommandButton Bot
  21.       Caption         =   "Aceptar"
  22.       Height          =   495
  23.       Left            =   240
  24.       TabIndex        =   2
  25.       Top             =   720
  26.       Width           =   1215
  27.    End
  28.    Begin VB.TextBox Texto 
  29.       Height          =   285
  30.       Left            =   1680
  31.       TabIndex        =   1
  32.       Top             =   240
  33.       Width           =   1455
  34.    End
  35.    Begin VB.Label Etiqueta 
  36.       Caption         =   "Escribe un n
  37. mero:"
  38.       Height          =   255
  39.       Left            =   240
  40.       TabIndex        =   0
  41.       Top             =   240
  42.       Width           =   1455
  43.    End
  44. Attribute VB_Name = "Depurar"
  45. Attribute VB_GlobalNameSpace = False
  46. Attribute VB_Creatable = False
  47. Attribute VB_PredeclaredId = True
  48. Attribute VB_Exposed = False
  49. Private Sub Bot
  50. n_Click()
  51.     If Texto.Text < 1 Then
  52.         MsgBox ("N
  53. mero negativo")
  54.     Else
  55.         MsgBox ("N
  56. mero positivo")
  57.     End If
  58. End Sub
  59. Private Sub Salir_Click()
  60.     Unload Depurar
  61. End Sub
  62.