Issue 23699 - split() returns wron value on empty string
Summary: split() returns wron value on empty string
Status: CLOSED DUPLICATE of issue 23697
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: 680m17
Hardware: All All
: P3 Trivial (vote)
Target Milestone: OOo 2.0
Assignee: ab
QA Contact: issues@framework
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-19 00:24 UTC by b.osi.ooo
Modified: 2003-12-19 00:27 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 b.osi.ooo 2003-12-19 00:24:14 UTC
split() returns wron value on empty string

run in macro editor:
dim a() as string
print uBound(a) ' shows "-1"
a = split ("", "x") 
print uBound(a) ' BUG: fails with message "index out of range"

other basic dialekts return an array with an empty string like:
a(0) = "" ' where uBound shows 0, which is much 'nicer'
Comment 1 b.osi.ooo 2003-12-19 00:27:00 UTC
grrr - got errormesage, but got submitted....

*** This issue has been marked as a duplicate of 23697 ***
Comment 2 b.osi.ooo 2003-12-19 00:27:34 UTC
closing