home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1998 April
/
ChipCD_498.iso
/
software
/
ftp
/
quickftp
/
quickft3.frm
< prev
next >
Wrap
Text File
|
1996-01-03
|
3KB
|
140 lines
VERSION 2.00
Begin Form Put_file
BackColor = &H00C0C0C0&
BorderStyle = 3 'Fixed Double
Caption = "Put File"
ClientHeight = 2160
ClientLeft = 3300
ClientTop = 2055
ClientWidth = 3210
ControlBox = 0 'False
Height = 2565
Left = 3240
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 540
ScaleWidth = 540
Top = 1710
Width = 3330
Begin CommandButton Cancelput
Cancel = -1 'True
Caption = "Cancel"
Height = 375
Left = 2040
TabIndex = 4
Top = 1560
Width = 975
End
Begin CommandButton PutFile
Caption = "Put"
Height = 375
Left = 120
TabIndex = 2
Top = 1560
Width = 975
End
Begin TextBox LocalFile
Height = 285
Left = 1320
TabIndex = 0
Text = "LocalFile"
Top = 240
Width = 1695
End
Begin TextBox HostFile
Height = 285
Left = 1320
TabIndex = 1
Text = "HostFile"
Top = 840
Width = 1695
End
Begin Label Label2
BackColor = &H00C0C0C0&
Caption = "Local File :"
Height = 255
Left = 120
TabIndex = 5
Top = 240
Width = 1095
End
Begin Label Label1
BackColor = &H00C0C0C0&
Caption = "Host File :"
Height = 255
Left = 120
TabIndex = 3
Top = 840
Width = 1095
End
End
Sub Cancelput_Click ()
'
OKDialog = False
Unload Put_file
'
End Sub
Sub Form_Load ()
'
Put_file!HostFile.Text = ""
Put_file!LocalFile.Text = ""
switch_to LocalFile
'
End Sub
Sub HostFile_KeyPress (keyascii As Integer)
If keyascii = 13 Then keyascii = 13: PutFile.SetFocus
End Sub
Sub LocalFile_KeyPress (keyascii As Integer)
If keyascii = 13 Then keyascii = 13: switch_to HostFile
End Sub
Sub PutFile_Click ()
'
Dim Hulp As String
'
src_name = Put_file!LocalFile.Text
dest_name = Put_file!HostFile.Text
'
Host_File_Name = src_name
Local_File_Name = dest_name
putmode = False
FTP_form!Cycle_sec = Val(Get_file!txtCycle)
If Val(txtCycle) > 0 Then
doitmode = False
cyclemode = True
End If
If Len(Trim$(src_name)) <> 0 Then
If Dir$(src_name) <> "" Then
If Len(Trim$(dest_name)) = 0 Then
Hulp = src_name
While InStr(Hulp, "\") <> 0
Hulp = Right$(Hulp, Len(Hulp) - InStr(Hulp, "\"))
Wend
dest_name = Hulp
End If
OKDialog = True
Unload Put_file
Else
MsgBox "File does not exist " & Destnam, 64, "Warning"
End If
Else
MsgBox "You must at least enter a source name", 64, "Warning"
End If
'
End Sub