[Gambas-user] RENAME in 1.9.28
    Allen Murphy 
    msumurph at ...626...
       
    Tue Mar 28 15:13:18 CEST 2006
    
    
  
Hello,
I have found that with both 1.9.27 and 1.9.28 the RENAME command is not
recognized.  I tried a new console project with 1.9.28 to test.  Here is
the code below:
' Gambas class file
STATIC PUBLIC SUB Main()
    DIM f AS String
    
    PRINT "Hello World"
    
    FOR EACH f IN Dir("/home/user", "*.*")
        PRINT f
    NEXT
    
    RENAME "file1.txt" AS "file2.txt "
    
    FOR EACH f IN Dir("/home/user", "*.*")
        PRINT f
    NEXT
    
END
When I execute the program, this message is returned:
Unknown Identifier: RENAME at line 13 in cMain.class.
This code works in earlier versions of Gambas and Gambas2.
Thank you,
Allen
    
    
More information about the User
mailing list