Apache OpenOffice (AOO) Bugzilla – Issue 20324
StarBasic booleans and Null are read-only in Arrays
Last modified: 2005-04-06 13:43:08 UTC
In a StarBasic Variant array, if you try to assign a new element to an index occupied by a boolean or the Null object, you get an error: "Read-Error. This property is read-only." This is illustrated for booleans in the following snippet: Sub Main Dim AnArray() AnArray = Array( "isFixed", true ) 'No problem with next line; the original type is string. AnArray(0) = "hello" 'Next line triggers "read-only" error, the type being boolean. AnArray(1) = false End Sub I found this in a Linux OOo1.1RC, but i assume that this bug is on all platforms. I do not know if there are any other object types which manifest this bug.
IssueZilla was so slow today that this bug got submitted twice. *** This issue has been marked as a duplicate of 20323 ***
StarBASIC issue, not API
Resolved as duplicate to 20323
Closed