CONGRATULATIONS!!!
YOU'VE
HUNG
IN
THERE
SO
FAR!!!
THE
REWARDS
WILL
SOON
BE
YOURS!!!
OBJECTIVES
This lesson focuses on using the file-system controls to write a
program that lets you select a file from a drive. There are
three file-system controls: 1) The drive list box, 2) The directory
list box, and 3) the file list box.
FILE-SYSTEM CONTROLS
1. What is the purpose of the first line in the following code?
On Error GoTo DriveError
dirDirectory.Path = "A:"
Exit Sub
DriveError:
MsgBox "Drive Error!", 48, "Error"
drvDrive.Drive = dirDirectory.Path
Exit Sub
2. What happens after the following statement is executed?
filFiles.Patter = "*.BAT"
3. What happens after the following statement is executed?
filFiles.Path = dirDirectory.Path
4. What happens after the following statement is executed?
dirDirectory.Path = "D:"
TEST YOUR PROGRESS
BACK TO HOMEPAGE