[Gambas-user] rdir returns unwanted directories
Charlie
charlie at ...2793...
Sun May 28 15:05:33 CEST 2017
I presume you just want the file name not the folder details. If so try this,
sFiles will contain just the file name: -
*Public Sub Form_Open()
Dim sFileArray As New String[]
Dim sFiles As New String[]
Dim sTemp As String
sFileArray = RDir(User.Home, "*", gb.File)
For Each sTemp In sFileArray
sFiles.Add(Mid(sTemp, RInStr(sTemp, "/") + 1))
Next
End*
-----
Check out www.gambas.one
--
View this message in context: http://gambas.8142.n7.nabble.com/rdir-returns-unwanted-directories-tp59204p59208.html
Sent from the gambas-user mailing list archive at Nabble.com.
More information about the User
mailing list