https://bugs.documentfoundation.org/show_bug.cgi?id=143183

--- Comment #4 from Mike Kaganski <mikekagan...@hotmail.com> ---
(In reply to Olivier Hallot from comment #3)
> Also the "&" format code seems to return the format string itself.
> msgbox Format("ADCDEFGHIJKLMNOPQRSTUVWXYZ1234567890", "&abc")
> msgbox Format(123.456, "&abc")
> msgbox Format("123.456", "&abc")
> 
> all return &abc.

No, the first one returns "ADCDEFGHIJKLMNOPQRSTUVWXYZ1234567890" - the handling
of "&" in printfmtstr is the same as treatment of everything else ("default"
clause in the switch), with the only difference of also modifying position of
the pFmt, which is only used for return value of the function ("the number of
characters used from the format"), which is in fact unused in the only place
where the function is called - hence I didn't mention the "&" in comment 2.

When the string may be converted to number, it is handled as a number, using
different rules.

In general, I suppose we need to drop this "printfmtstr" idiocy, as I suggested
in tdf#143193.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to