SelectDrive Method

Object List Next Object

Defined By:
FileListBox

Description:

Forces the ListIndex to highlight the specified drive.

Declaration:

Sub SelectDrive(ByVal path As String)

Details:

SelectDrive will look at the leftmost character of the path, and try to locate the drive designated by that letter. If such a drive exists, SelectDrive will cause the FileListBox to highlight the row representing that drive. If ShowDrives is set to False, and no drive can be located that begins with the specified character, SelectDrive will do nothing. SelectDrive will also do nothing if passed the empty string.