Issue 22214 - Basic Format not working with value zero
Summary: Basic Format not working with value zero
Status: CLOSED FIXED
Alias: None
Product: App Dev
Classification: Unclassified
Component: scripting (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: PC Windows XP
: P3 Trivial
Target Milestone: ---
Assignee: ab
QA Contact: Unknown
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-06 17:59 UTC by bmarcelly
Modified: 2013-02-24 21:00 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 bmarcelly 2003-11-06 17:59:26 UTC
I came upon this problem in Basic :

Sub Main
Dim n As Integer
  n = 1
  print Format(n, "0000"), Format(n-1, "0000")
End Sub

Reading the on-line Help on Format instruction, I would expect this result:
0001     0000
However the result is:
0001
Value zero is formatted into a null string. I consider this a bug.
Comment 1 kay.ramme 2003-11-11 11:04:44 UTC
Andreas, seems to be a bug? Please take care and target appropriately
(2.0?).
Comment 2 ab 2003-11-13 15:46:32 UTC
-> OOo 2.0
Comment 3 ab 2004-08-03 09:12:54 UTC
Fixed
Comment 4 b.osi.ooo 2004-08-26 17:54:37 UTC
verified in CWS on linux
Comment 5 ab 2005-01-04 13:42:32 UTC
Checked on src680 m66 -> Closed