VERSION 5.00 Begin VB.Form Form35 BorderStyle = 4 'Fixed ToolWindow Caption = "Cange Value" ClientHeight = 3075 ClientLeft = 45 ClientTop = 300 ClientWidth = 3330 LinkTopic = "Form35" MaxButton = 0 'False MDIChild = -1 'True MinButton = 0 'False ScaleHeight = 3075 ScaleWidth = 3330 ShowInTaskbar = 0 'False Begin VB.CommandButton Command2 Caption = "CANCEL" BeginProperty Font Name = "Arial" Size = 9.75 Charset = 0 Weight = 400 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Left = 120 TabIndex = 9 Top = 2520 Width = 1335 End Begin VB.CommandButton Command1 Caption = "OK (SpaceBar)" BeginProperty Font Name = "Arial" Size = 9.75 Charset = 0 Weight = 400 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Left = 1680 TabIndex = 1 Top = 2520 Width = 1455 End Begin VB.TextBox Text1 Alignment = 2 'Center BeginProperty Font Name = "Arial" Size = 12 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 495 Left = 1680 TabIndex = 6 Text = "-" Top = 1800 Width = 1455 End Begin VB.Label Label7 Caption = "-" BeginProperty Font Name = "Arial" Size = 11.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 255 Left = 1560 TabIndex = 8 Top = 720 Width = 1575 End Begin VB.Label Label6 Caption = "-" BeginProperty Font Name = "Arial" Size = 8.25 Charset = 0 Weight = 400 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 255 Left = 1200 TabIndex = 7 Top = 240 Width = 1935 End Begin VB.Label Label5 Alignment = 2 'Center Caption = "---" BeginProperty Font Name = "Arial" Size = 11.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 255 Left = 120 TabIndex = 5 Top = 1920 Width = 1335 End Begin VB.Label Label4 Alignment = 2 'Center Caption = "NEW VALUE" BeginProperty Font Name = "Arial" Size = 11.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 255 Left = 1680 TabIndex = 4 Top = 1320 Width = 1335 End Begin VB.Label Label3 Alignment = 2 'Center Caption = "OLD VALUE" BeginProperty Font Name = "Arial" Size = 11.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 255 Left = 120 TabIndex = 3 Top = 1320 Width = 1335 End Begin VB.Label Label2 Caption = "ELEMENT:" BeginProperty Font Name = "Arial" Size = 11.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 255 Left = 120 TabIndex = 2 Top = 720 Width = 1335 End Begin VB.Label Label1 Caption = "SAMPLE:" BeginProperty Font Name = "Arial" Size = 11.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 255 Left = 120 TabIndex = 0 Top = 240 Width = 1095 End End Attribute VB_Name = "Form35" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Private Sub Command1_Click() aa1 = Val(Text1.Text) If aa1 <= 0 Then MsgBox "An error occurred!" Exit Sub End If 'determino l'elemento numa = 101 For i = 1 To Numelem If Label7.Caption = Elementi(i) Then numa = i GoTo poi End If Next i If numa = 101 Then MsgBox "An error occurred" Exit Sub End If poi: 'determino il campione numb = 1001 For i = 1 To Numcamp1 If Label6.Caption = NomeCamp(i) Then numb = i GoTo poi1 End If Next i If numb = 1001 Then MsgBox "An error occurred" Exit Sub End If poi1: DatiOrigine(numb, numa) = Val(Text1.Text) BackGrnd.FG1.Row = numb BackGrnd.FG1.col = numa + 3 BackGrnd.FG1 = Val(Text1.Text) Form35.Hide End Sub Private Sub Command2_Click() Form35.Hide End Sub Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer) If KeyCode = 32 Then Command1_Click End If End Sub