VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   3195
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   6090
   LinkTopic       =   "Form1"
   ScaleHeight     =   3195
   ScaleWidth      =   6090
   StartUpPosition =   3  'Windows Default
   Begin VB.TextBox Text2 
      Height          =   375
      Index           =   5
      Left            =   3840
      TabIndex        =   12
      Text            =   "Text2"
      Top             =   2520
      Width           =   1695
   End
   Begin VB.TextBox Text2 
      Height          =   375
      Index           =   4
      Left            =   3840
      TabIndex        =   11
      Text            =   "Text2"
      Top             =   2040
      Width           =   1695
   End
   Begin VB.TextBox Text2 
      Height          =   375
      Index           =   3
      Left            =   3840
      TabIndex        =   10
      Text            =   "Text2"
      Top             =   1560
      Width           =   1695
   End
   Begin VB.TextBox Text2 
      Height          =   375
      Index           =   2
      Left            =   3840
      TabIndex        =   9
      Text            =   "Text2"
      Top             =   1080
      Width           =   1695
   End
   Begin VB.TextBox Text2 
      Height          =   375
      Index           =   1
      Left            =   3840
      TabIndex        =   8
      Text            =   "Text2"
      Top             =   600
      Width           =   1695
   End
   Begin VB.TextBox Text2 
      Height          =   375
      Index           =   0
      Left            =   3840
      TabIndex        =   7
      Text            =   "Text2"
      Top             =   120
      Width           =   1695
   End
   Begin VB.CommandButton Command1 
      Caption         =   "Command1"
      Height          =   255
      Left            =   2160
      TabIndex        =   6
      Top             =   360
      Width           =   1335
   End
   Begin VB.TextBox Text1 
      Height          =   375
      Index           =   5
      Left            =   120
      TabIndex        =   5
      Text            =   "Text1"
      Top             =   2520
      Width           =   1815
   End
   Begin VB.TextBox Text1 
      Height          =   375
      Index           =   4
      Left            =   120
      TabIndex        =   4
      Text            =   "Text1"
      Top             =   2040
      Width           =   1815
   End
   Begin VB.TextBox Text1 
      Height          =   375
      Index           =   3
      Left            =   120
      TabIndex        =   3
      Text            =   "Text1"
      Top             =   1560
      Width           =   1815
   End
   Begin VB.TextBox Text1 
      Height          =   375
      Index           =   2
      Left            =   120
      TabIndex        =   2
      Text            =   "Text1"
      Top             =   1080
      Width           =   1815
   End
   Begin VB.TextBox Text1 
      Height          =   375
      Index           =   1
      Left            =   120
      TabIndex        =   1
      Text            =   "Text1"
      Top             =   600
      Width           =   1815
   End
   Begin VB.TextBox Text1 
      Height          =   375
      Index           =   0
      Left            =   120
      TabIndex        =   0
      Text            =   "Text1"
      Top             =   120
      Width           =   1815
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Type stuffType
    txt() As String
End Type

Private Sub Command1_Click()
    Dim x As stuffType
    ReDim x.txt(5)
    Dim i As Long
    For i = 0 To 5
        x.txt(i) = Text1(i).Text
    Next
    Open "c:\settings.dat" For Binary As #1
        Put #1, , x
    Close #1
    
    
    '' now lets get the settings back
    Dim y As stuffType
    Open "c:\settings.dat" For Binary As #1
        Get #1, , y
    Close #1
    For i = 0 To 5
        Text2(i).Text = y.txt(i)
    Next

    
End Sub

Private Sub Form_Load()
    Dim i As Long
    For i = 0 To 5
        Text1(i).Text = ""
        Text2(i).Text = ""
    Next
End Sub
