VERSION 5.00 Begin VB.Form Form33 BorderStyle = 4 'Fixed ToolWindow ClientHeight = 2400 ClientLeft = 45 ClientTop = 300 ClientWidth = 4590 LinkTopic = "Form4" MaxButton = 0 'False MDIChild = -1 'True MinButton = 0 'False ScaleHeight = 2400 ScaleWidth = 4590 ShowInTaskbar = 0 'False Begin VB.ListBox List1 Height = 1815 Left = 0 TabIndex = 22 Top = 0 Visible = 0 'False Width = 4335 End Begin VB.CommandButton Command3 Caption = "OK (SpaceBar)" BeginProperty Font Name = "Arial" Size = 9.75 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Left = 2880 TabIndex = 1 Top = 1680 Width = 1575 End Begin VB.Frame Frame2 Caption = "Custom Phases (Select from samples)" BeginProperty Font Name = "Arial" Size = 11.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty ForeColor = &H00008000& Height = 1335 Left = 120 TabIndex = 11 Top = 120 Width = 4335 Begin VB.CommandButton Command2 BackColor = &H000000FF& Caption = "Select" BeginProperty Font Name = "Arial" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Index = 7 Left = 3120 Style = 1 'Graphical TabIndex = 19 Top = 720 Width = 990 End Begin VB.CommandButton Command2 BackColor = &H000000FF& Caption = "Select" BeginProperty Font Name = "Arial" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Index = 6 Left = 2160 Style = 1 'Graphical TabIndex = 18 Top = 720 Width = 990 End Begin VB.CommandButton Command2 BackColor = &H000000FF& Caption = "Select" BeginProperty Font Name = "Arial" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Index = 5 Left = 1200 Style = 1 'Graphical TabIndex = 17 Top = 720 Width = 990 End Begin VB.CommandButton Command2 BackColor = &H000000FF& Caption = "Select" BeginProperty Font Name = "Arial" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Index = 4 Left = 240 Style = 1 'Graphical TabIndex = 16 Top = 720 Width = 990 End Begin VB.CommandButton Command2 BackColor = &H000000FF& Caption = "Select" BeginProperty Font Name = "Arial" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Index = 3 Left = 3120 Style = 1 'Graphical TabIndex = 15 Top = 360 Width = 990 End Begin VB.CommandButton Command2 BackColor = &H000000FF& Caption = "Select" BeginProperty Font Name = "Arial" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Index = 2 Left = 2160 Style = 1 'Graphical TabIndex = 14 Top = 360 Width = 990 End Begin VB.CommandButton Command2 BackColor = &H000000FF& Caption = "Select" BeginProperty Font Name = "Arial" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Index = 1 Left = 1200 Style = 1 'Graphical TabIndex = 13 Top = 360 Width = 990 End Begin VB.CommandButton Command2 BackColor = &H000000FF& Caption = "Select" BeginProperty Font Name = "Arial" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Index = 0 Left = 240 Style = 1 'Graphical TabIndex = 12 Top = 360 Width = 990 End End Begin VB.Frame Frame1 Caption = "Standard Phases" BeginProperty Font Name = "Arial" Size = 11.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty ForeColor = &H00008000& Height = 1215 Left = 120 TabIndex = 0 Top = 360 Visible = 0 'False Width = 4335 Begin VB.CommandButton Command1 BackColor = &H000000FF& Caption = "qz" BeginProperty Font Name = "Arial" Size = 9.75 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Index = 9 Left = 720 Style = 1 'Graphical TabIndex = 24 Top = 720 Width = 495 End Begin VB.CommandButton Command1 BackColor = &H000000FF& Caption = "he" BeginProperty Font Name = "Arial" Size = 9.75 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Index = 8 Left = 240 Style = 1 'Graphical TabIndex = 10 Top = 720 Width = 495 End Begin VB.CommandButton Command1 BackColor = &H000000FF& Caption = "di" BeginProperty Font Name = "Arial" Size = 9.75 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Index = 7 Left = 3600 Style = 1 'Graphical TabIndex = 9 Top = 360 Width = 495 End Begin VB.CommandButton Command1 BackColor = &H000000FF& Caption = "fs" BeginProperty Font Name = "Arial" Size = 9.75 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Index = 6 Left = 3120 Style = 1 'Graphical TabIndex = 8 Top = 360 Width = 495 End Begin VB.CommandButton Command1 BackColor = &H000000FF& Caption = "en" BeginProperty Font Name = "Arial" Size = 9.75 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Index = 5 Left = 2640 Style = 1 'Graphical TabIndex = 7 Top = 360 Width = 495 End Begin VB.CommandButton Command1 BackColor = &H000000FF& Caption = "wo" BeginProperty Font Name = "Arial" Size = 9.75 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Index = 4 Left = 2160 Style = 1 'Graphical TabIndex = 6 Top = 360 Width = 495 End Begin VB.CommandButton Command1 BackColor = &H000000FF& Caption = "an" BeginProperty Font Name = "Arial" Size = 9.75 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Index = 3 Left = 1680 Style = 1 'Graphical TabIndex = 5 Top = 360 Width = 495 End Begin VB.CommandButton Command1 BackColor = &H000000FF& Caption = "ab" BeginProperty Font Name = "Arial" Size = 9.75 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Index = 2 Left = 1200 Style = 1 'Graphical TabIndex = 4 Top = 360 Width = 495 End Begin VB.CommandButton Command1 BackColor = &H000000FF& Caption = "fo" BeginProperty Font Name = "Arial" Size = 9.75 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Index = 1 Left = 720 Style = 1 'Graphical TabIndex = 3 Top = 360 Width = 495 End Begin VB.CommandButton Command1 BackColor = &H000000FF& Caption = "fa" BeginProperty Font Name = "Arial" Size = 9.75 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Index = 0 Left = 240 Style = 1 'Graphical TabIndex = 2 Top = 360 Width = 495 End Begin VB.Label Label3 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 = 1440 TabIndex = 23 Top = 840 Width = 2655 End End Begin VB.Label Label2 Caption = "0" BeginProperty Font Name = "Arial" Size = 11.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 255 Left = 2520 TabIndex = 21 Top = 1800 Width = 375 End Begin VB.Label Label1 Caption = "Number of Phases (max. 8):" BeginProperty Font Name = "Arial" Size = 9 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty ForeColor = &H00000080& Height = 255 Left = 120 TabIndex = 20 Top = 1800 Width = 3015 End End Attribute VB_Name = "Form33" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Private Sub Command1_Click(Index As Integer) If Command1(Index).BackColor = QBColor(12) Then Command1(Index).BackColor = QBColor(3) NumPh = NumPh + 1 Ph(NumPh) = Command1(Index).Caption Label2.Caption = NumPh Label2.Refresh Exit Sub End If If Command1(Index).BackColor = QBColor(3) Then Command1(Index).BackColor = QBColor(12) NumPh = NumPh - 1 Label2.Caption = NumPh Label2.Refresh Exit Sub End If End Sub Private Sub Command1_MouseMove(Index As Integer, Button As Integer, Shift As Integer, x As Single, y As Single) If Index = 0 Then Label3.Caption = "Fayalite" Label3.Refresh End If If Index = 1 Then Label3.Caption = "Fosterite" Label3.Refresh End If If Index = 2 Then Label3.Caption = "albite" Label3.Refresh End If If Index = 3 Then Label3.Caption = "anortite" Label3.Refresh End If If Index = 4 Then Label3.Caption = "wollastonite" Label3.Refresh End If If Index = 5 Then Label3.Caption = "enstatite" Label3.Refresh End If If Index = 6 Then Label3.Caption = "ferrosilite" Label3.Refresh End If If Index = 7 Then Label3.Caption = "diopside" Label3.Refresh End If If Index = 8 Then Label3.Caption = "hedembergite" Label3.Refresh End If If Index = 8 Then Label3.Caption = "hedembergite" Label3.Refresh End If End Sub Private Sub Command2_Click(Index As Integer) If Fileopen = True Then If Command2(Index).BackColor = QBColor(3) Then Command2(Index).Caption = "Select" Command2(Index).BackColor = QBColor(12) NumPh = NumPh - 1 Label2.Caption = NumPh Label2.Refresh Exit Sub End If If Command2(Index).BackColor = QBColor(12) Then List1.Clear For ia = 1 To Numcamp1 List1.AddItem NomeCamp(ia) Next ia List1.Visible = True StromerInd = Index End If End If Form33.Command3.SetFocus End Sub Private Sub Command3_Click() Erase PATOT For ia = 1 To 11 Form30.Text3(ia).Visible = False Form30.Text4(ia).Visible = False Form30.Text5(ia).Visible = False Form30.Text6(ia).Visible = False Form30.Text7(ia).Visible = False Form30.Text8(ia).Visible = False Form30.Text9(ia).Visible = False Form30.Text10(ia).Visible = False Next ia For ia = 1 To 8 Form30.Label4(ia).Visible = False Form30.Label4(ia).Caption = "" Next ia For ia = 1 To NumPh Form30.Label4(ia).Visible = True Form30.Label4(ia).Caption = Ph(ia) Next ia For ia = 1 To NumOx Form30.Text3(ia).Visible = False Form30.Text3(ia).Text = "nd" Form30.Text4(ia).Visible = False Form30.Text4(ia).Text = "nd" Form30.Text5(ia).Visible = False Form30.Text5(ia).Text = "nd" Form30.Text6(ia).Visible = False Form30.Text6(ia).Text = "nd" Form30.Text7(ia).Visible = False Form30.Text7(ia).Text = "nd" Form30.Text8(ia).Visible = False Form30.Text8(ia).Text = "nd" Form30.Text9(ia).Visible = False Form30.Text9(ia).Text = "nd" Form30.Text10(ia).Visible = False Form30.Text10(ia).Text = "nd" Next ia For ia1 = 1 To NumPh Close #1 Open App.Path + "\data\" + Ph(ia1) + ".txt" For Input As #1 Do While Not EOF(1) Input #1, aa Input #1, bb For ia = 1 To NumOx If aa = OX(ia) Then If bb = -1 Then PA(ia, ia1) = 0 GoTo poiu End If PA(ia, ia1) = Val(Format(bb, "0.0000")) poiu: PATOT(ia1) = PATOT(ia1) + PA(ia, ia1) If ia1 = 1 Then Form30.Text3(ia).Visible = True Form30.Text3(ia).Text = PA(ia, ia1) Form30.Text3(NumOx + 1).Visible = True Form30.Text3(NumOx + 1).Text = PATOT(ia1) End If If ia1 = 2 Then Form30.Text4(ia).Text = PA(ia, ia1) Form30.Text4(ia).Visible = True Form30.Text4(NumOx + 1).Visible = True Form30.Text4(NumOx + 1).Text = PATOT(ia1) End If If ia1 = 3 Then Form30.Text5(ia).Text = PA(ia, ia1) Form30.Text5(ia).Visible = True Form30.Text5(NumOx + 1).Visible = True Form30.Text5(NumOx + 1).Text = PATOT(ia1) End If If ia1 = 4 Then Form30.Text6(ia).Text = PA(ia, ia1) Form30.Text6(ia).Visible = True Form30.Text6(NumOx + 1).Visible = True Form30.Text6(NumOx + 1).Text = PATOT(ia1) End If If ia1 = 5 Then Form30.Text7(ia).Text = PA(ia, ia1) Form30.Text7(ia).Visible = True Form30.Text7(NumOx + 1).Visible = True Form30.Text7(NumOx + 1).Text = PATOT(ia1) End If If ia1 = 6 Then Form30.Text8(ia).Text = PA(ia, ia1) Form30.Text8(ia).Visible = True Form30.Text8(NumOx + 1).Visible = True Form30.Text8(NumOx + 1).Text = PATOT(ia1) End If If ia1 = 7 Then Form30.Text9(ia).Text = PA(ia, ia1) Form30.Text9(ia).Visible = True Form30.Text9(NumOx + 1).Visible = True Form30.Text9(NumOx + 1).Text = PATOT(ia1) End If If ia1 = 8 Then Form30.Text10(ia).Text = PA(ia, ia1) Form30.Text10(ia).Visible = True Form30.Text10(NumOx + 1).Visible = True Form30.Text10(NumOx + 1).Text = PATOT(ia1) End If End If Next ia Loop Next ia1 Unload Form33 End Sub Private Sub Command4_Click() End Sub Private Sub Command4_KeyPress(KeyAscii As Integer) If KeyAscii = 32 Then Command3_Click End If End Sub Private Sub List1_Click() Command2(StromerInd).BackColor = QBColor(3) Command2(StromerInd).Caption = List1.Text List1.Visible = False NumPh = NumPh + 1 Label2.Caption = NumPh Label2.Refresh Ph(NumPh) = List1.Text Close #1 Open App.Path + "\data\" + Ph(NumPh) + ".txt" For Output As #1 For ia = 1 To Numcamp1 If Ph(NumPh) = NomeCamp(ia) Then qwq = ia GoTo poi End If Next ia poi: For ia = 1 To Numelem Print #1, Elementi(ia) If DatiOrigine(qwq, ia) <= 0 Then Print #1, 0 Else Print #1, DatiOrigine(qwq, ia) End If Next ia Close #1 End Sub Private Sub List1_KeyDown(KeyCode As Integer, Shift As Integer) If KeyCode = 32 Then Command3_Click End If End Sub