2 Begin VB.Form RoomDirectory
4 BackColor = &H00C0C0C0&
5 BorderStyle = 3 'Fixed Dialog
6 Caption = "Directory of this room..."
13 name = "MS Sans Serif"
19 strikethrough = 0 'False
21 ForeColor = &H80000008&
32 Begin VB.CommandButton download_button
34 BackColor = &H80000005&
42 Begin VB.VScrollBar TheScroll
49 Begin VB.CommandButton ok_button
51 BackColor = &H80000005&
59 Begin VB.Label filedesc
61 BackColor = &H80000005&
62 BackStyle = 0 'Transparent
63 ForeColor = &H80000008&
71 Begin VB.Label filesize
73 BackColor = &H80000005&
74 BackStyle = 0 'Transparent
75 ForeColor = &H80000008&
83 Begin VB.Label filename
85 BackColor = &H80000005&
86 BackStyle = 0 'Transparent
87 ForeColor = &H80000008&
95 Begin VB.Label filedesc
97 BackColor = &H80000005&
98 BackStyle = 0 'Transparent
99 ForeColor = &H80000008&
107 Begin VB.Label filesize
109 BackColor = &H80000005&
110 BackStyle = 0 'Transparent
111 ForeColor = &H80000008&
119 Begin VB.Label filename
121 BackColor = &H80000005&
122 BackStyle = 0 'Transparent
123 ForeColor = &H80000008&
131 Begin VB.Label filedesc
133 BackColor = &H80000005&
134 BackStyle = 0 'Transparent
135 ForeColor = &H80000008&
143 Begin VB.Label filesize
145 BackColor = &H80000005&
146 BackStyle = 0 'Transparent
147 ForeColor = &H80000008&
155 Begin VB.Label filename
157 BackColor = &H80000005&
158 BackStyle = 0 'Transparent
159 ForeColor = &H80000008&
167 Begin VB.Label filedesc
169 BackColor = &H80000005&
170 BackStyle = 0 'Transparent
171 ForeColor = &H80000008&
179 Begin VB.Label filesize
181 BackColor = &H80000005&
182 BackStyle = 0 'Transparent
183 ForeColor = &H80000008&
191 Begin VB.Label filename
193 BackColor = &H80000005&
194 BackStyle = 0 'Transparent
195 ForeColor = &H80000008&
203 Begin VB.Label filedesc
205 BackColor = &H80000005&
206 BackStyle = 0 'Transparent
207 ForeColor = &H80000008&
215 Begin VB.Label filesize
217 BackColor = &H80000005&
218 BackStyle = 0 'Transparent
219 ForeColor = &H80000008&
227 Begin VB.Label filename
229 BackColor = &H80000005&
230 BackStyle = 0 'Transparent
231 ForeColor = &H80000008&
239 Begin VB.Label filedesc
241 BackColor = &H80000005&
242 BackStyle = 0 'Transparent
243 ForeColor = &H80000008&
251 Begin VB.Label filesize
253 BackColor = &H80000005&
254 BackStyle = 0 'Transparent
255 ForeColor = &H80000008&
263 Begin VB.Label filename
265 BackColor = &H80000005&
266 BackStyle = 0 'Transparent
267 ForeColor = &H80000008&
275 Begin VB.Label filedesc
277 BackColor = &H80000005&
278 BackStyle = 0 'Transparent
279 ForeColor = &H80000008&
287 Begin VB.Label filesize
289 BackColor = &H80000005&
290 BackStyle = 0 'Transparent
291 ForeColor = &H80000008&
299 Begin VB.Label filename
301 BackColor = &H80000005&
302 BackStyle = 0 'Transparent
303 ForeColor = &H80000008&
311 Begin VB.Label filedesc
313 BackColor = &H80000005&
314 BackStyle = 0 'Transparent
315 ForeColor = &H80000008&
323 Begin VB.Label filesize
325 BackColor = &H80000005&
326 BackStyle = 0 'Transparent
327 ForeColor = &H80000008&
335 Begin VB.Label filename
337 BackColor = &H80000005&
338 BackStyle = 0 'Transparent
339 ForeColor = &H80000008&
347 Begin VB.Label filedesc
349 BackColor = &H80000005&
350 BackStyle = 0 'Transparent
351 ForeColor = &H80000008&
359 Begin VB.Label filesize
361 BackColor = &H80000005&
362 BackStyle = 0 'Transparent
363 ForeColor = &H80000008&
371 Begin VB.Label filename
373 BackColor = &H80000005&
374 BackStyle = 0 'Transparent
375 ForeColor = &H80000008&
383 Begin VB.Label filedesc
385 BackColor = &H80000005&
386 BackStyle = 0 'Transparent
387 ForeColor = &H80000008&
395 Begin VB.Label filesize
397 BackColor = &H80000005&
398 BackStyle = 0 'Transparent
399 ForeColor = &H80000008&
407 Begin VB.Label filename
409 BackColor = &H80000005&
410 BackStyle = 0 'Transparent
411 ForeColor = &H80000008&
419 Begin VB.Label filedesc
421 BackColor = &H80000005&
422 BackStyle = 0 'Transparent
423 ForeColor = &H80000008&
431 Begin VB.Label filesize
433 BackColor = &H80000005&
434 BackStyle = 0 'Transparent
435 ForeColor = &H80000008&
443 Begin VB.Label filename
445 BackColor = &H80000005&
446 BackStyle = 0 'Transparent
447 ForeColor = &H80000008&
455 Begin VB.Label filedesc
457 BackColor = &H80000005&
458 BackStyle = 0 'Transparent
459 ForeColor = &H80000008&
467 Begin VB.Label filesize
469 BackColor = &H80000005&
470 BackStyle = 0 'Transparent
471 ForeColor = &H80000008&
479 Begin VB.Label filename
481 BackColor = &H80000005&
482 BackStyle = 0 'Transparent
483 ForeColor = &H80000008&
491 Begin VB.Label filedesc
493 BackColor = &H80000005&
494 BackStyle = 0 'Transparent
495 ForeColor = &H80000008&
503 Begin VB.Label filesize
505 BackColor = &H80000005&
506 BackStyle = 0 'Transparent
507 ForeColor = &H80000008&
515 Begin VB.Label filename
517 BackColor = &H80000005&
518 BackStyle = 0 'Transparent
519 ForeColor = &H00000000&
527 Begin VB.Label filedesc
529 BackColor = &H80000005&
530 BackStyle = 0 'Transparent
531 ForeColor = &H80000008&
539 Begin VB.Label filesize
541 BackColor = &H80000005&
542 BackStyle = 0 'Transparent
543 ForeColor = &H80000008&
551 Begin VB.Label filename
553 BackColor = &H80000005&
554 BackStyle = 0 'Transparent
555 ForeColor = &H80000008&
563 Begin VB.Label filedesc
565 BackColor = &H80000005&
566 BackStyle = 0 'Transparent
567 ForeColor = &H80000008&
575 Begin VB.Label filesize
577 BackColor = &H80000005&
578 BackStyle = 0 'Transparent
579 ForeColor = &H80000008&
587 Begin VB.Label filename
589 BackColor = &H80000005&
590 BackStyle = 0 'Transparent
591 ForeColor = &H80000008&
599 Begin VB.Label filedesc
601 BackColor = &H80000005&
602 BackStyle = 0 'Transparent
603 ForeColor = &H80000008&
611 Begin VB.Label filesize
613 BackColor = &H80000005&
614 BackStyle = 0 'Transparent
615 ForeColor = &H80000008&
623 Begin VB.Label filename
625 BackColor = &H80000005&
626 BackStyle = 0 'Transparent
627 ForeColor = &H80000008&
635 Begin VB.Label filedesc
637 BackColor = &H80000005&
638 BackStyle = 0 'Transparent
639 ForeColor = &H80000008&
647 Begin VB.Label filesize
649 BackColor = &H80000005&
650 BackStyle = 0 'Transparent
651 ForeColor = &H80000008&
659 Begin VB.Label filename
661 BackColor = &H80000005&
662 BackStyle = 0 'Transparent
663 ForeColor = &H80000008&
671 Begin VB.Label filedesc
673 BackColor = &H80000005&
674 BackStyle = 0 'Transparent
675 ForeColor = &H80000008&
683 Begin VB.Label filesize
685 BackColor = &H80000005&
686 BackStyle = 0 'Transparent
687 ForeColor = &H80000008&
695 Begin VB.Label filename
697 BackColor = &H80000005&
698 BackStyle = 0 'Transparent
699 ForeColor = &H80000008&
707 Begin VB.Label filedesc
709 BackColor = &H80000005&
710 BackStyle = 0 'Transparent
711 ForeColor = &H80000008&
719 Begin VB.Label filesize
721 BackColor = &H80000005&
722 BackStyle = 0 'Transparent
723 ForeColor = &H80000008&
731 Begin VB.Label filename
733 BackColor = &H80000005&
734 BackStyle = 0 'Transparent
735 ForeColor = &H80000008&
743 Begin VB.Label filedesc
745 BackColor = &H80000005&
746 BackStyle = 0 'Transparent
747 ForeColor = &H80000008&
755 Begin VB.Label filesize
757 BackColor = &H80000005&
758 BackStyle = 0 'Transparent
759 ForeColor = &H80000008&
767 Begin VB.Label filename
769 BackColor = &H80000005&
770 BackStyle = 0 'Transparent
771 ForeColor = &H80000008&
779 Begin VB.Label filedesc
781 BackColor = &H80000005&
782 BackStyle = 0 'Transparent
783 ForeColor = &H80000008&
791 Begin VB.Label filesize
793 BackColor = &H80000005&
794 BackStyle = 0 'Transparent
795 ForeColor = &H80000008&
803 Begin VB.Label filename
805 BackColor = &H80000005&
806 BackStyle = 0 'Transparent
807 ForeColor = &H80000008&
815 Begin VB.Label MaxFilesDisplay
816 Alignment = 2 'Center
818 BackColor = &H80000005&
819 BackStyle = 0 'Transparent
820 Caption = "Total number of files:"
822 name = "MS Sans Serif"
828 strikethrough = 0 'False
830 ForeColor = &H80000008&
837 Begin VB.Label Label3
838 Alignment = 2 'Center
840 BackColor = &H80000005&
841 BackStyle = 0 'Transparent
842 Caption = "Description"
844 name = "MS Sans Serif"
850 strikethrough = 0 'False
852 ForeColor = &H80000008&
859 Begin VB.Label Label2
860 Alignment = 2 'Center
862 BackColor = &H80000005&
863 BackStyle = 0 'Transparent
866 name = "MS Sans Serif"
872 strikethrough = 0 'False
874 ForeColor = &H80000008&
881 Begin VB.Label Label1
882 Alignment = 2 'Center
884 BackColor = &H80000005&
885 BackStyle = 0 'Transparent
888 name = "MS Sans Serif"
894 strikethrough = 0 'False
896 ForeColor = &H80000008&
904 Attribute VB_Name = "RoomDirectory"
905 Attribute VB_Creatable = False
906 Attribute VB_Exposed = False
907 Dim FileSizeArr&(1024)
908 Dim FileNameArr$(1024)
909 Dim FileDescArr$(1024)
912 Private Sub download_button_Click()
914 If Len(DownLoadFileName$) > 0 Then
921 Private Sub filename_Click(Index As Integer)
923 filename(z%).ForeColor = &H0&
925 filename(Index).ForeColor = &HFFFF&
926 DownLoadFileName$ = filename(Index).Caption
927 If Len(DownLoadFileName$) > 0 Then download_button.Enabled = True
930 Private Sub Form_Load()
934 RoomDirectory.WindowState = 0
935 RoomDirectory.Top = Int((MainWin.Height - RoomDirectory.Height) / 3)
936 RoomDirectory.Left = Int((MainWin.Width - RoomDirectory.Width) / 2)
940 DownLoadFileName$ = ""
941 download_button.Enabled = False
943 If begin_trans() = True Then
948 If Left$(a$, 1) = "1" Then
951 If (a$ <> "000") And MaxFiles% < 1024 Then
952 FileSizeArr&(MaxFiles%) = Val(extract$(a$, 1))
953 FileNameArr$(MaxFiles%) = extract$(a$, 0)
954 FileDescArr$(MaxFiles%) = extract$(a$, 2)
955 MaxFiles% = MaxFiles% + 1
957 Loop Until a$ = "000"
962 If (b% < 0) Then b% = 0
965 MaxFilesDisplay.Caption = "Total number of files: " + Str$(MaxFiles%)
972 Private Sub LoadContents()
976 If (TheScroll.Value + a%) <= (MaxFiles% - 1) Then
978 If FileSizeArr&(TheScroll.Value + a%) <> 0 Then
979 FileSize(a%).Caption = Str$(FileSizeArr&(TheScroll.Value + a%))
981 FileSize(a%).Caption = " "
983 filename(a%).Caption = FileNameArr$(TheScroll.Value + a%)
984 FileDesc(a%).Caption = FileDescArr$(TheScroll.Value + a%)
988 FileSize(a%).Caption = " "
989 filename(a%).Caption = " "
990 FileDesc(a%).Caption = " "
999 Private Sub ok_button_Click()
1000 Unload RoomDirectory
1004 Private Sub TheScroll_Change()