Issue 20323 - StarBasic booleans and Null are read-only in Arrays
Summary: StarBasic booleans and Null are read-only in Arrays
Status: CLOSED FIXED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: PC All
: P4 Trivial
Target Milestone: ---
Assignee: b.osi.ooo
QA Contact: issues@api
URL:
Keywords:
: 20324 (view as issue list)
Depends on:
Blocks:
 
Reported: 2003-09-29 15:23 UTC by bulbul
Modified: 2013-02-24 21:08 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description bulbul 2003-09-29 15:24:30 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.
Comment 1 bulbul 2003-09-29 15:51:44 UTC
Trying to reassign to Andreas Bregas (AB), as directed by Christoph
Neumann.
Comment 2 bulbul 2003-09-29 15:54:31 UTC
*** Issue 20324 has been marked as a duplicate of this issue. ***
Comment 3 ab 2003-10-09 10:00:49 UTC
-> OOo 2.0
Comment 4 christof.pintaske 2004-06-17 17:07:39 UTC
cp: retargeted to Office-Later due to limited ressources
Comment 5 christianjunker 2005-07-18 22:28:44 UTC
set to P4.
Comment 6 christianjunker 2005-07-18 22:32:41 UTC
cyb->ab: Still a bug in 2.0 . Adding myself to cc.
Comment 7 ab 2005-08-11 10:03:01 UTC
Fixed
Comment 8 ab 2006-03-09 14:36:14 UTC
ab: According to discussion with kso/sw -> 2.0.3
Comment 9 ab 2006-03-24 14:14:46 UTC
-> tbo


re-open issue and reassign to tbo@openoffice.org
Comment 10 ab 2006-03-24 14:14:51 UTC
reassign to tbo@openoffice.org
Comment 11 ab 2006-03-24 14:14:56 UTC
reset resolution to FIXED
Comment 12 b.osi.ooo 2006-04-04 19:51:05 UTC
OK in cws ab19;  verified 
Comment 13 b.osi.ooo 2006-04-13 18:14:40 UTC
integrated in src680m163

 close