Issue 20324 - StarBasic booleans and Null are read-only in Arrays
Summary: StarBasic booleans and Null are read-only in Arrays
Status: CLOSED DUPLICATE of issue 20323
Alias: None
Product: udk
Classification: Code
Component: code (show other issues)
Version: OOo 1.1 RC4
Hardware: PC All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: ab
QA Contact: issues@api
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-29 15:26 UTC by bulbul
Modified: 2005-04-06 13:43 UTC (History)
1 user (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:31:01 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:54:32 UTC
IssueZilla was so slow today that this bug got submitted twice.

*** This issue has been marked as a duplicate of 20323 ***
Comment 2 ooo 2003-09-30 08:19:32 UTC
StarBASIC issue, not API
Comment 3 ab 2003-10-09 09:59:10 UTC
Resolved as duplicate to 20323
Comment 4 ab 2005-04-06 13:43:08 UTC
Closed