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. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user