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

            Bug ID: 146069
           Summary: Property Let multiple arguments ignored
           Product: LibreOffice
           Version: 7.2.3.2 release
          Hardware: x86-64 (AMD64)
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: minor
          Priority: medium
         Component: BASIC
          Assignee: [email protected]
          Reporter: [email protected]

Description:
It looks to me like the argument list aspect of the property setter is being
ignored yielding unexpected results.
I have this class (CTest) with an array member that I want to set using an
indexed property let statement
[code]
option Compatible 
option ClassModule 
option Explicit 

        private _n() as integer

        private sub class_initialize() 
                redim _n(1 to 10) 
        end sub 
        public property let item(byval index as integer, byval value as
integer)
                _n(index) = value 
        end property 
[/code]
This is the code I am using to set the value:

[code]
sub m()
        dim n as ctest
        set n = new ctest
        n.item(1) = 12
end sub 
[/code]

I get this error:

    BASIC runtime error.
    Object variable not set.

LibreOffice 7.1.5.2 on Windows 8

Steps to Reproduce:
1. Create a class
2. Add a property setter (Property Let) 
3. Give the property let more than 1 parameter
4. Try to access all the property parameters

Actual Results:
All parameters are ignored except the value being assigned the class member

Expected Results:
Parameters should be accessible within the property let procedure 


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.2.3.2 (x64) / LibreOffice Community
Build ID: d166454616c1632304285822f9c83ce2e660fd92
CPU threads: 4; OS: Windows 6.1 Service Pack 1 Build 7601; UI render:
Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded

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

Reply via email to