[Gambas-user] Bug in Class "File" ?

Ru Vuott vuott at ...325...
Sat Dec 29 20:31:13 CET 2012


Hello,

I created in "/tmp" a simple file, and I tried this code that I saw in documentation:

*************************************
Public Sub Button1_Click()

Dim filePath As String
  
  Print "* A standard type of path"
  
   filePath = "/tmp/a.txt"

  Print filePath
  Print File.SetBaseName(filePath, "new-name")

End
************************************

...but the name of file doesn't change: I find again "a.txt" in /tmp directory, not "new-name.txt" !

Is there a bug ?


Regards
vuott





More information about the User mailing list