VERSION 5.00
Object = "{69F9D01E-F1DE-11D4-9536-002018603DA2}#7.0#0"; "MICONTROL.OCX"
Begin VB.Form FModificarItem 
   Caption         =   "Modificar Item"
   ClientHeight    =   2190
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   5070
   LinkTopic       =   "Form1"
   ScaleHeight     =   2190
   ScaleWidth      =   5070
   StartUpPosition =   3  'Windows Default
   Begin MiControl.CtrlNumber ctnCosto 
      Height          =   375
      Left            =   2520
      TabIndex        =   7
      Top             =   1560
      Width           =   1680
      _ExtentX        =   2963
      _ExtentY        =   661
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
   End
   Begin MiControl.CtrlNumber ctnUnidades 
      Height          =   375
      Left            =   240
      TabIndex        =   6
      Top             =   1560
      Width           =   1575
      _ExtentX        =   2778
      _ExtentY        =   661
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
   End
   Begin VB.Label lblDescripcion 
      BorderStyle     =   1  'Fixed Single
      Height          =   255
      Left            =   1560
      TabIndex        =   5
      Top             =   840
      Width           =   3255
   End
   Begin VB.Label lblCodArt 
      BorderStyle     =   1  'Fixed Single
      Height          =   255
      Left            =   1560
      TabIndex        =   4
      Top             =   360
      Width           =   1575
   End
   Begin VB.Label Label4 
      AutoSize        =   -1  'True
      Caption         =   "Costo"
      Height          =   195
      Left            =   2520
      TabIndex        =   3
      Top             =   1320
      Width           =   405
   End
   Begin VB.Label Label3 
      AutoSize        =   -1  'True
      Caption         =   "Cantidad"
      Height          =   195
      Left            =   240
      TabIndex        =   2
      Top             =   1320
      Width           =   630
   End
   Begin VB.Label lblDescr 
      AutoSize        =   -1  'True
      Caption         =   "Descripción"
      Height          =   195
      Left            =   240
      TabIndex        =   1
      Top             =   840
      Width           =   840
   End
   Begin VB.Label lblCodigo 
      AutoSize        =   -1  'True
      Caption         =   "Código"
      Height          =   195
      Left            =   240
      TabIndex        =   0
      Top             =   360
      Width           =   495
   End
End
Attribute VB_Name = "FModificarItem"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub ctnCosto_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
    If Val(ctnUnidades.Text) = 0 Or Val(ctnCosto.Text) = 0 Then
        MsgBox "El campo unidades y costo deben ser mayores a cero", vbExclamation, "Error de Ingreso"
        Exit Sub
    Else
        Unload Me
    End If
End If
End Sub

Private Sub ctnUnidades_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
    ctnCosto.SetFocus
End If
End Sub

Private Sub Form_Load()
    ctnUnidades.ValorPorDefecto
    ctnCosto.ValorPorDefecto
End Sub
