Re: [api-dev] Please verify bug in StarBasic Format command

2010-06-26 Thread Johnny Rosenberg
2010/6/26 Andrew Douglas Pitonyak and...@pitonyak.org:



 I see errors in the 64-bit Linux release with this simple macro



 Sub strangeFormats

  Dim i%

  Dim d As Date

  d = now()

  Dim s$

  Dim formats

  formats = Array(q, y, yy, , _

                  m, mm, mmm, , _

                  d, dd, ddd, , d, dd, _

                  w, ww, h, hh, n, nn, s, ss, _

                  t, c, _

                  d// h:dd:ss, d// h:nn:ss)

  For i = LBound(formats) To UBound(formats)

    s = s  formats(i)   =   Format(d, formats(i))  CHR$(10)

  Next

  MsgBox s

 End Sub



 What I see (correctly):

 dd = Two digit day

 nn = two digit minute



 Incorrect:

 d// h:nn:ss = nn produces the expected output from ddd, namely

 the three letter day name.



Same happens for me, except that day name is two letters (in Swedish):

d// h:nn:ss = 26-juni-2010 9:lö:46



(lö=lördag=saturday)





 d// h:dd:ss = dd produces the two digit minute, which I expected

 with nn.



I get the correct output in this case:

dd = 26

nn = 24

d// h:dd:ss = 26-juni-2010 9:26:46



I'm on Ubuntu 10.04 but I uninstalled the Ubuntu version (since it had
a bug that I couldn't live with) and installed the ”vanilla” version
instead: OOO320m12 (Build:9483). My computer is old (bought in the end
of 2006) so everything is 32-bit.



Johnny Rosenberg





 Just want to know how to file the bug!



 --

 Andrew Pitonyak

 My Macro Document: http://www.pitonyak.org/AndrewMacro.odt

 My Book: http://www.hentzenwerke.com/catalog/oome.htm

 Info:  http://www.pitonyak.org/oo.php

 See Also: http://documentation.openoffice.org/HOW_TO/index.html





 -

 To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org

 For additional commands, e-mail: dev-h...@api.openoffice.org





-
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org



Re: [api-dev] Please verify bug in StarBasic Format command

2010-06-26 Thread Andrew Douglas Pitonyak



On 06/26/2010 03:37 AM, Johnny Rosenberg wrote:

2010/6/26 Andrew Douglas Pitonyakand...@pitonyak.org:
   


d// h:nn:ss =  nn produces the expected output from ddd, namely
 
   

the three letter day name.
 



Same happens for me, except that day name is two letters (in Swedish):

d// h:nn:ss =  26-juni-2010 9:lö:46



(lö=lördag=saturday)
   

d// h:dd:ss =  dd produces the two digit minute, which I expected
 
   

with nn.
 



I get the correct output in this case:

dd =  26

nn =  24

d// h:dd:ss =  26-juni-2010 9:26:46
   


You are correct, glad you caught that. that should not have slipped by 
me :-)





I'm on Ubuntu 10.04 but I uninstalled the Ubuntu version (since it had
a bug that I couldn't live with) and installed the ”vanilla” version
instead: OOO320m12 (Build:9483). My computer is old (bought in the end
of 2006) so everything is 32-bit.



Johnny Rosenberg
   

Thanks Johnny!

http://qa.openoffice.org/issues/show_bug.cgi?id=112722

--
Andrew Pitonyak
My Macro Document: http://www.pitonyak.org/AndrewMacro.odt
My Book: http://www.hentzenwerke.com/catalog/oome.htm
Info:  http://www.pitonyak.org/oo.php
See Also: http://documentation.openoffice.org/HOW_TO/index.html


-
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org