VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form frmBuildArray 
   BorderStyle     =   1  'Fest Einfach
   Caption         =   "Array wird erzeugt..."
   ClientHeight    =   735
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   5130
   Icon            =   "frmBuildArray.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   735
   ScaleWidth      =   5130
   StartUpPosition =   1  'Fenstermitte
   Begin MSComctlLib.ProgressBar pgbBuildArray 
      Height          =   495
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   4935
      _ExtentX        =   8705
      _ExtentY        =   873
      _Version        =   393216
      BorderStyle     =   1
      Appearance      =   0
      Min             =   1e-4
      Scrolling       =   1
   End
End
Attribute VB_Name = "frmBuildArray"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private bolClose As Boolean

Private Sub Form_Activate()
    Dim z, i As Long
    Dim intCurr As Integer
    
    bolClose = False
    z = CLng(frmMain.edtAnzahl.Text)
    pgbBuildArray.Max = z
    pgbBuildArray.Min = 0
    pgbBuildArray.Value = 0
    DoEvents
    
    ReDim arrValues(z) As Integer
    For i = 0 To z - 1
        If frmMain.btnGFX.Caption = "gfx on" Then
            Do While frmMain.chkRndValue(intCurr)
                intCurr = Int((z - 0 + 1) * Rnd + 0)
            Loop
        Else
            intCurr = Int((z - 0 + 1) * Rnd + 0)
        End If
        arrValues(i) = intCurr
        frmMain.lstValues.AddItem CStr(intCurr)
        pgbBuildArray.Value = i
    Next i
    
    bolClose = True
    Unload frmBuildArray
End Sub

Private Sub Form_Unload(Cancel As Integer)
    If bolClose Then
        Cancel = 0
    Else
        Cancel = 1
    End If
End Sub
