[Gambas-user] rdir returns unwanted directories

Gianluigi bagonergi at ...626...
Sun May 28 17:19:13 CEST 2017


now I understand the question :-)

Regards
Gianluigi

2017-05-28 15:05 GMT+02:00 Charlie <charlie at ...2793...>:

> 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



More information about the User mailing list