Apache OpenOffice (AOO) Bugzilla – Issue 19221
Print Tab(5); "Hello" does not work
Last modified: 2023-02-08 18:08:43 UTC
Print Tab(5); "Hello" does not work because Tab does not exist or work. This is documented as working in the online help. Should this be added to work from BASIC or should this be removed from the documentation?
Andrew, please do not assign purely StarBASIC runtime issues to me. I am only responsible for the OOo API, not for StarBASIC. Thanks.
-> OOo 2.0
According to the roadmap of OpenOffice.org 2.0 (http://tools.openoffice.org/releases/q-concept.html) this issue has been scheduled for 3.0.
Where in the help did you see the command 'tab' explained? I looked into <F1> -> Contents -> Macros and Programming -> Command Reference -> Alphabetic list of funtions... I can't find it there.
I missed this question, not certain how.... Open the help pages for OpenOffice.org Basic. Now, click on the Index tab. for the search term, use "Print statement". It states the following: Print Statement [Runtime] Prints the specified strings or numeric expressions in a dialog. Syntax: Print Expression1[{;|,} [Spc(Number As Integer);] [Tab(pos As Integer);] [Expression2[...]] Notice the Tab statement that is included. The Spc() function does work, however... I assume that these exist for VB compatibility... http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vblr7/html/vastmPrint.asp
started. reassigned to ab. cyb->ab: Notice that Tab is not really a function identifier like Spc or Print is. Question is whether this should be assigned to Online help (i don't know which component).
reassigning..
Started
Tab() is a function just like Spc() and Space(), and it was missing. Patch committed in revision 1720071, resolving fixed.
It seems this patch introduced a regression with TAN function. See tdf#102872: In basic/source/runtime/stdobj.cxx#523 { "Tab", SbxSTRING, 1 | _FUNCTION, RTLNAME(Tab),0 }, TAB function is expecting a parameter which is taken next line so TAN is unable. Should insert a line#524 like: { "Count", SbxLONG, 0,nullptr,0 },
Confirmed with 4.2.0-dev Attempting to call the tan function results in a runtime error: "Sub-procedure or function procedure not defined".
(In reply to Laurent BP from comment #10) > It seems this patch introduced a regression with TAN function. See > tdf#102872: > In basic/source/runtime/stdobj.cxx#523 > { "Tab", SbxSTRING, 1 | _FUNCTION, RTLNAME(Tab),0 }, > TAB function is expecting a parameter which is taken next line so TAN is > unable. > Should insert a line#524 like: > { "Count", SbxLONG, 0,nullptr,0 }, Thanks Laurent! I will do a test build with your patch added now. Sorry that we haven't seen that for so long...
Regression fixed in trunk: https://github.com/apache/openoffice/commit/09edc5ae9fb853902001b332819f1d7f468c4806 Cherry-picked for AOO42X: https://github.com/apache/openoffice/commit/796497920373ba5d71862eb5b273cbe587075204
Cherry-picked for AOO41X now.
This has a test now. https://github.com/apache/openoffice/commit/3b297b461537a449cdc46a885832873b48e62701 Patch-By: Czesław Wolański
(In reply to Carl Marcum from comment #15) > This has a test now. > > https://github.com/apache/openoffice/commit/ > 3b297b461537a449cdc46a885832873b48e62701 > > Patch-By: Czesław Wolański Cherry-picking the test for AOO42X with a1409b3e46fc2fc106591343fd49d8d080d5d5b1, so that later patches apply.