home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form Form1
- BackColor = &H00C0C0C0&
- Caption = "Juego de Ordenador"
- ClientHeight = 5400
- ClientLeft = 960
- ClientTop = 1275
- ClientWidth = 7410
- Height = 5805
- Left = 900
- LinkTopic = "Form1"
- ScaleHeight = 540
- ScaleWidth = 540
- Top = 930
- Width = 7530
- Begin VB.CommandButton Command3
- Caption = "Volver"
- Height = 495
- Left = 240
- TabIndex = 28
- Top = 4800
- Width = 975
- End
- Begin VB.Frame Frame1
- Caption = "Soporte"
- Height = 1095
- Left = 1200
- TabIndex = 19
- Top = 1320
- Width = 2655
- Begin VB.OptionButton Option4
- Caption = "DVD"
- Height = 255
- Left = 1440
- TabIndex = 23
- Top = 720
- Width = 1095
- End
- Begin VB.OptionButton Option3
- Caption = "CD-ROM"
- Height = 255
- Left = 1440
- TabIndex = 22
- Top = 360
- Width = 1095
- End
- Begin VB.OptionButton Option2
- Caption = "Disco 3 1/2"
- Height = 255
- Left = 120
- TabIndex = 21
- Top = 720
- Width = 1215
- End
- Begin VB.OptionButton Option1
- Caption = "Disco 5 1/4"
- Height = 255
- Left = 120
- TabIndex = 20
- Top = 360
- Width = 1215
- End
- End
- Begin VB.CommandButton Command2
- Caption = "Limpiar"
- Height = 495
- Left = 5520
- TabIndex = 11
- Top = 4800
- Width = 975
- End
- Begin VB.CommandButton Command1
- Caption = "Aceptar"
- Height = 495
- Left = 4320
- TabIndex = 10
- Top = 4800
- Width = 975
- End
- Begin VB.TextBox Text6
- Height = 615
- Left = 1200
- MultiLine = -1 'True
- TabIndex = 9
- Top = 3840
- Width = 2775
- End
- Begin VB.TextBox Text5
- Height = 285
- Left = 1200
- TabIndex = 8
- Top = 3360
- Width = 2775
- End
- Begin VB.Frame Frame2
- Caption = "Calificaci
- Height = 2175
- Left = 4920
- TabIndex = 6
- Top = 2280
- Width = 1575
- Begin VB.OptionButton Option9
- Caption = "Muy Malo"
- Height = 255
- Left = 240
- TabIndex = 27
- Top = 1800
- Width = 1095
- End
- Begin VB.OptionButton Option8
- Caption = "Malo"
- Height = 255
- Left = 240
- TabIndex = 26
- Top = 1440
- Width = 1095
- End
- Begin VB.OptionButton Option7
- Caption = "Normal"
- Height = 255
- Left = 240
- TabIndex = 25
- Top = 1080
- Width = 1095
- End
- Begin VB.OptionButton Option6
- Caption = "Bueno"
- Height = 255
- Left = 240
- TabIndex = 24
- Top = 720
- Width = 1215
- End
- Begin VB.OptionButton Option5
- Caption = "Muy Bueno"
- Height = 255
- Left = 240
- TabIndex = 7
- Top = 360
- Width = 1215
- End
- End
- Begin VB.TextBox Text4
- Height = 285
- Left = 2760
- TabIndex = 5
- Top = 2760
- Width = 1215
- End
- Begin VB.CheckBox Check1
- Caption = "Terminado"
- Height = 375
- Left = 1200
- TabIndex = 4
- Top = 2640
- Width = 1335
- End
- Begin VB.ComboBox Combo1
- Height = 300
- ItemData = "VB231.frx":0000
- Left = 4080
- List = "VB231.frx":0013
- Sorted = -1 'True
- Style = 2 'Dropdown List
- TabIndex = 3
- Top = 1680
- Width = 2415
- End
- Begin VB.TextBox Text3
- Height = 285
- Left = 5520
- TabIndex = 2
- Top = 840
- Width = 975
- End
- Begin VB.TextBox Text2
- Height = 285
- Left = 1200
- TabIndex = 1
- Top = 840
- Width = 2655
- End
- Begin VB.TextBox Text1
- Height = 285
- Left = 1200
- TabIndex = 0
- Top = 360
- Width = 5295
- End
- Begin VB.Label Label7
- Caption = "Notas:"
- Height = 255
- Left = 240
- TabIndex = 18
- Top = 3840
- Width = 855
- End
- Begin VB.Label Label6
- Caption = "Localizaci
- Height = 255
- Left = 240
- TabIndex = 17
- Top = 3360
- Width = 1095
- End
- Begin VB.Label Label5
- Caption = "Fecha:"
- Height = 255
- Left = 2760
- TabIndex = 16
- Top = 2520
- Width = 855
- End
- Begin VB.Label Label4
- Caption = "G
- nero:"
- Height = 255
- Left = 4080
- TabIndex = 15
- Top = 1440
- Width = 855
- End
- Begin VB.Label Label3
- Caption = "A
- o de Publicaci
- Height = 255
- Left = 4080
- TabIndex = 14
- Top = 840
- Width = 1575
- End
- Begin VB.Label Label2
- Caption = "Casa:"
- Height = 255
- Left = 240
- TabIndex = 13
- Top = 840
- Width = 855
- End
- Begin VB.Label Label1
- Caption = "Nombre:"
- Height = 255
- Left = 240
- TabIndex = 12
- Top = 360
- Width = 855
- End
- Attribute VB_Name = "Form1"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Private Sub Check1_Click()
- If Check1.Value = 1 Then
- Text4.Visible = True
- Label5.Visible = True
- Text4.Visible = False
- Label5.Visible = False
- End If
- End Sub
- Private Sub Combo1_Change()
- Verificar_Completo
- End Sub
- Private Sub Command1_Click()
- Dim UnJuegoLeido As Juego
- UnJuego.Nombre = Text1.Text
- UnJuego.CasaEditora = Text2.Text
- UnJuego.Localizacion = Text5.Text
- UnJuego.Anotaciones = Text6.Text
- UnJuego.A
- oPublicacion = Val(Text3.Text)
- UnJuego.Genero = Combo1.Text
- If Option1.Value = False Then
- If Option2.Value = False Then
- If Option3.Value = False Then
- UnJuego.Soporte = 4
- Else
- UnJuego.Soporte = 3
- End If
- Else
- UnJuego.Soporte = 2
- End If
- UnJuego.Soporte = 1
- End If
- If Option5.Value = False Then
- If Option6.Value = False Then
- If Option7.Value = False Then
- If Option8.Value = False Then
- UnJuego.Calificacion = 5
- Else
- UnJuego.Calificacion = 4
- End If
- Else
- UnJuego.Calificacion = 3
- End If
- Else
- UnJuego.Calificacion = 2
- End If
- UnJuego.Calificacion = 1
- End If
- UnJuego.Terminado = Check1.Value
- UnJuego.Fecha = Text4.Text
- Id_Fichero = FreeFile
- Open "C:\tmp\juegos.dbv" For Random As Id_Fichero Len = Len(UnJuego)
- Rem Hay que buscar donde escribir el registro
- i = 1
- Do While i <= 20
- Get Id_Fichero, i, UnJuegoLeido
- If UnJuegoLeido.Nombre <> "" Then
- If UnJuegoLeido.Nombre = UnJuego.Nombre Then
- Exit Do
- Else
- i = i + 1
- End If
- Else
- Exit Do
- End If
- Put Id_Fichero, i, UnJuego
- Close Id_Fichero
- Rem Para limpiar la ventana llamamos al procedimiento del bot
- n "Limpiar"
- Command2_Click
- End Sub
- Private Sub Command2_Click()
- Text1.Text = ""
- Text2.Text = ""
- Text3.Text = ""
- Text4.Text = ""
- Text5.Text = ""
- Text6.Text = ""
- Check1.Value = 0
- Option2.Value = 1
- Option7.Value = 1
- Verificar_Completo
- End Sub
- Private Sub Command3_Click()
- Command2_Click
- Form1.Hide
- Form2.Show
- End Sub
- Public Sub Verificar_Completo()
- If (Text1.Text = "" Or Text2.Text = "" Or Text5.Text = "") Then
- Command1.Enabled = False
- Command1.Enabled = True
- End If
- End Sub
- Private Sub Text1_Change()
- Verificar_Completo
- End Sub
- Private Sub Text2_Change()
- Verificar_Completo
- End Sub
- Private Sub Text3_Change()
- Verificar_Completo
- End Sub
- Private Sub Text4_Change()
- Verificar_Completo
- End Sub
- Private Sub Text5_Change()
- Verificar_Completo
- End Sub
- Private Sub Text6_Change()
- Verificar_Completo
- End Sub
-