-
Notifications
You must be signed in to change notification settings - Fork 2
/
BrowseF.frm
221 lines (187 loc) · 5.87 KB
/
BrowseF.frm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
VERSION 5.00
Begin VB.Form BrowseF
BorderStyle = 3 'Fixed Dialog
Caption = "Select A Folder - My Movie Manager"
ClientHeight = 5235
ClientLeft = 2760
ClientTop = 3750
ClientWidth = 4455
Icon = "BrowseF.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 5235
ScaleWidth = 4455
ShowInTaskbar = 0 'False
StartUpPosition = 2 'CenterScreen
Begin VB.DriveListBox flDr
BeginProperty Font
Name = "Arial"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 360
Left = 120
TabIndex = 5
Top = 480
Width = 4215
End
Begin VB.TextBox flPath
Enabled = 0 'False
BeginProperty Font
Name = "Arial Narrow"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 120
TabIndex = 4
Top = 120
Width = 4215
End
Begin VB.CommandButton bOK
Caption = "OK"
BeginProperty Font
Name = "Arial"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 1800
TabIndex = 3
Top = 4680
Width = 1095
End
Begin VB.CommandButton bCancel
Caption = "Cancel"
BeginProperty Font
Name = "Arial"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 3000
TabIndex = 2
Top = 4680
Width = 1215
End
Begin VB.DirListBox flBr
BeginProperty Font
Name = "Arial"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 3150
Left = 120
TabIndex = 1
Top = 840
Width = 4215
End
Begin VB.CheckBox fR
Caption = "Look in the Subfolders, their Subfolders etc."
BeginProperty Font
Name = "Arial"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 120
TabIndex = 0
Top = 4200
Width = 5055
End
End
Attribute VB_Name = "BrowseF"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub bCancel_Click()
Unload Me
End Sub
Private Sub bOK_Click()
Dim ii
Dim dimStatus
On Error GoTo bOK_Click_Error
dimStatus = 0
For Each ii In Fwizard.LocData.ListItems
If UCase(ii.Text) = UCase(flBr.path) Then dimStatus = 1
Next
If dimStatus = 0 Then
Fwizard.fPath = flBr.path
Fwizard.fR.Value = fR.Value
Fwizard.fAdd_Click
Else
GoTo msg
End If
dimStatus = 0
For Each ii In addFolders.LocData.ListItems
If UCase(ii.Text) = UCase(flBr.path) Then dimStatus = 1
Next
If dimStatus = 0 Then
addFolders.fPath = flBr.path
addFolders.fR.Value = fR.Value
addFolders.fAdd_Click
Else
GoTo msg
End If
Unload Me
Exit Sub
msg:
MsgBox "This Folder is Already Added. Please Choose another.", vbInformation
On Error GoTo 0
Exit Sub
bOK_Click_Error:
writeError "Error " & Err.Number & " (" & Err.Description & ") in procedure bOK_Click of Form BrowseF" & vbCrLf & "HelpContext = " & Err.HelpContext & " Source = " & Err.Source
End Sub
Private Sub flBr_Change()
On Error GoTo flBr_Change_Error
flPath.Text = UCase(flBr.path)
On Error GoTo 0
Exit Sub
flBr_Change_Error:
writeError "Error " & Err.Number & " (" & Err.Description & ") in procedure flBr_Change of Form BrowseF" & vbCrLf & "HelpContext = " & Err.HelpContext & " Source = " & Err.Source
End Sub
Private Sub flDr_Change()
On Error GoTo flDr_Change_Error
On Error Resume Next
flBr.path = flDr.Drive
On Error GoTo 0
Exit Sub
flDr_Change_Error:
writeError "Error " & Err.Number & " (" & Err.Description & ") in procedure flDr_Change of Form BrowseF" & vbCrLf & "HelpContext = " & Err.HelpContext & " Source = " & Err.Source
End Sub
Private Sub Form_Load()
On Error GoTo Form_Load_Error
flPath = flBr.path
flPath.ForeColor = vbBlack
On Error GoTo 0
Exit Sub
Form_Load_Error:
writeError "Error " & Err.Number & " (" & Err.Description & ") in procedure Form_Load of Form BrowseF" & vbCrLf & "HelpContext = " & Err.HelpContext & " Source = " & Err.Source
End Sub