https://bugs.documentfoundation.org/show_bug.cgi?id=164811

            Bug ID: 164811
           Summary: Passing a Date to an UNO method results in "Object
                    variable not set"
           Product: LibreOffice
           Version: Inherited From OOo
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: BASIC
          Assignee: [email protected]
          Reporter: [email protected]

Consider this BASIC code:

Sub TestDayFunction
  Dim d As Date
  d = "2025-01-23"

  oService = CreateUnoService("com.sun.star.sheet.FunctionAccess")
  MsgBox oService.callFunction("DAY", array(d))
End Sub

Running it produces an "Object variable not set" runtime error.
Commenting out the Dim statement, it runs correctly.

It is expected that the code runs OK.
Obviously an error in 9cdb73ff28c4cd6380412468f34ff10e46292a07, which for some
reason made getUnoTypeForSbxBaseType handle IsCompatibility differently
compared to the other places in the same file.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to