File: SAMPLES\SOLUTION\CONTROLS\LISTS\MULTFILE.SCX
This sample shows how to populate a list with files. When you populate a list with files, built-in functionality allows a user to select new drives and directories. In this sample, a user can select one or more files in the list and open them for editing.
The following code loops through the items in the list box and opens the selected files for editing:
FOR nFile = 5 to THISFORM.lstFiles.ListCount IF THISFORM.lstFiles.Selected(nFile) MODIFY FILE (THISFORM.lstFiles.List(2) + ; THISFORM.lstFiles.List(nFile)) NOWAIT ENDIF ENDFOR
When the RowSourceType property is set to 7 - Files:
Files can start at lstFiles.List(5)