Syntax error opening Anaphr. menu & ...

maromedbo
2011-01-16
2012-09-14
  • maromedbo

    maromedbo - 2011-01-16

    I am trying to get Anaphraseus 2.01b to work on Open Office 3.3. (Windows

    7 Home).

    When trying to create the menu and toolbar I get the following message:

    BASIC syntax error.

    Expected: ,.

    and the menu doesn't appear. In the macro window, OF setup, the first word

    "sFile" is highlighted in the line:

    if FileExists(sFile) Then Name sFile As sFile+".bak"

    Any ideas how I can fix this?

     
  • Ole Yansen

    Ole Yansen - 2011-01-17

    Hi maromedbo.

    It's very interesting issue I saw once in LibreOffice. As I understand now,
    it's Basic 3.3 issue.

    It happen because new Basic couldn't handle Name function in one-line IF
    statement.

    To fix it, just modify source code:

    Old:

    if FileExists(sFile) Then Name sFile As sFile+".bak"
    

    New:

        if FileExists(sFile) Then 
          Name sFile As sFile+".bak" 
        endif
    

    There should be another similar error (in SaveReorganisedTM function).

    Fix is similar:

    Old code:

    if FileExists(aFile) Then  Name aFile As aFile+".bak"
    

    New code:

    if FileExists(aFile) Then 
     Name aFile As aFile+".bak" 
    endif
    

    Mail me: oleyansen at gmail . com, and I'll send you new test version of
    Anaphraseus.

    Best regards, Ole

    P.S. After this fix Anaphraseus could work with LibreOffice, but as I know
    LibreOffice can't install extensions with Addon.xcu yet. So we'll wait :-)

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks