VERSION 5.00
Begin VB.Form PWPCPY 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "PWP copy tool"
   ClientHeight    =   10935
   ClientLeft      =   60
   ClientTop       =   375
   ClientWidth     =   16155
   ClipControls    =   0   'False
   ControlBox      =   0   'False
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   588.57
   ScaleMode       =   0  'User
   ScaleWidth      =   829.29
   Begin Project1.FTPCopy uc_FTPCopy 
      Height          =   10590
      Left            =   120
      TabIndex        =   0
      Top             =   240
      Width           =   16080
      _ExtentX        =   26458
      _ExtentY        =   18680
   End
End
Attribute VB_Name = "PWPCPY"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub Form_Load()
On Error GoTo ErrHandler
    ' initialize WSock32
    Call uc_FTPCopy.vbWSAStartup
    uc_FTPCopy.LoginName = prg.LoginName
    uc_FTPCopy.U_Code = prg.U_Code
    Set uc_FTPCopy.Db = ADB
    Call uc_FTPCopy.Load_A_Com
   
    Exit Sub
ErrHandler:
    Dim ls_msg As String
      Call uc_FTPCopy.Unload_A_Com
    Call uc_FTPCopy.vbWSACleanup
    ' Display msg into debug window
    MsgBox "Error n°" & Err.Number & ", " & Err.Description & " occured into " & Err.Source
End Sub

Private Sub Form_Unload(Cancel As Integer)
    Call uc_FTPCopy.Unload_A_Com
    Call uc_FTPCopy.vbWSACleanup
End Sub



Private Sub uc_FTPCopy_quit()
Unload PWPCPY
Screen.MousePointer = 0
End Sub
