[ooo-build-bugs] [Bug 30524] New: BASIC macro language is crippled.

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Sep 30 18:54:48 PDT 2010


https://bugs.freedesktop.org/show_bug.cgi?id=30524

           Summary: BASIC macro language is crippled.
           Product: LibreOffice
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: libreoffice
        AssignedTo: ooo-build-bugs at lists.freedesktop.org
        ReportedBy: b450036 at lhsdv.com


Perhaps this can be fixed. Here's a script that looks like it should work, but
it doesn't:
========================
function cell(sht,x,y)
   cell = ThisComponent.Sheets.getByName(sht).getCellByPosition(x,y)
end function

function simple(arg)
   '' Just returns the arg
   simple = arg
end function

function call_it(fn)
   call_it = fn("Hello!")
end function

sub main
   cell("Sheet1",0,0).String = call_it(simple)
end sub
=========================

When the "main" macro is run, the script fails while evaluating SIMPLE,
complaining that "arg is not optional".

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the ooo-build-bugs mailing list