Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
LOCAL ARRAY laFiles(1)
LOCAL lnCount, lnI
lnCount = ADIR(laFiles, "c:\MyFolder")
THISFORM.lstMyListBox.RowSourceType = 0
FOR lnI = 1 TO lnCount
THISFORM.lstMyListBox.AddItem(JUSTFNAME(laFiles), lnI, 1)
ENDFOR
THISFORM.lstMyListBox.ListIndex = 1
Files Source Type
You can populate a list box or combo box with the names of files from the current directory. The list also contains options for you to choose a different drive and directory to display file names from.
To populate the control with file names from a directory
Set RowSourceType to 7 (Files).
Set RowSource by specifying a file skeleton or mask, such as *.* or *.fileExt.
For example, the following lines of code set RowSourceType to 7 to indicate that the source type is files and specifies a file skeleton for RowSource:
Form1.lstMyList.RowSourceType = 7
Form1.lstMyList.RowSource = "*.*"