[Gambas-user] How do I fetch a list of files?

Bodard Fabien gambasfr at ...11...
Tue Mar 1 13:39:45 CET 2005


Le mardi 1 Mars 2005 07:25, Eldon Eller a écrit :
> Yet another dumb question (YADQ): I am writing a gambas app where I want
> the user to select from a list of files (not via a dialog). So I need a
> way to fetch the file names from a specified directory. How do I do that?
>

Look at fill_explorer in the gambas ide in the FSupExplorer class

dim sDir as string
For each sDir in Dir(sPath, "*")
ListView.Add(sPath &/ sDir, sDir)
Next

Gambas power ;)

Fabien Bodard





More information about the User mailing list