[Gambas-user] Find files without extensions using LIKE

Moviga Technologies moviga at mykolab.ch
Wed Oct 18 10:16:50 CEST 2017


> Hi,
> maybe this helps:
> 
> Dim sFile As String
> For Each sFile In Dir(User.Home)
> Print File.BaseName(sFile)
> Next
> 
> Regards
> Ingo

Hi Ingo! 

Unfortunately not :) That will only hide the extensions from the file
names, but I don't want them at all. It can be easily achieved with a
loop and InStr() though. But, its rather a question of possible syntax
for the regular expression.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20171018/62899a4c/attachment.html>


More information about the User mailing list