Description: Seems in LibreOffice Basic editor starting from version 5.4.0.3 symbol # considered as comment line. However this symbol used in BASIC code as integer variable mark. So previously worked construction like that #iFile = Freefile() suddenly stop to work in my BASIC code. Is it possible to not use # as comment line symbol so my code will continue to work? Steps to Reproduce: 1.Open LibreOffice Basic editor (Tools - Macros - Organize Macros - LibreOffice Basic) 2. Enter simple test program name = "/tmp/file.txt" #iFile = FreeFile() Open name for Output Access Write As #iFile Print #iFile, "TEST" Close #iFile 3. Run program Actual Results: Error Window containing text BASIC runtime error. Invalid file name or file number appear Expected Results: Test program should work Reproducible: Always User Profile Reset: No Additional Info: User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
Created attachment 135876 [details] Test program with results
As stated in comment #8 for related issue: https://bugs.documentfoundation.org/show_bug.cgi?id=93727#c8 'Note: as suggested by OP, # is not a comment marker in VBA. Excel2003's compiler complains as you type #x = 1. Thus, these functions are invalid code.' So seems this is my Basic code is invalid. I will change it accordingly and close this issue as invalid.