This question is about the display and displayln methods of the SFIToolkit added in Stata version 16.
According to the documentation, they are defined as:
Yet when I use them I find that display actually does what displayln is declared to do, and displayln adds yet another empty line.
For example, the following code:
Produces this output:
While my expectation is this:
How do I tell SFIToolkit to continue the output in the same line??
Thank you, Sergiy
According to the documentation, they are defined as:
| display(s[, asis]) | Output a string to the Stata Results window. |
| displayln(s[, asis]) | Output a string to the Stata Results window and automatically add a line terminator at the end. |
For example, the following code:
Code:
SFIToolkit.display('A')
SFIToolkit.display('B')
SFIToolkit.display('C')
SFIToolkit.display('D')
SFIToolkit.displayln('.')
SFIToolkit.display('X')
SFIToolkit.displayln('Y')
SFIToolkit.display('Z')
SFIToolkit.display('T')
SFIToolkit.display('.')
Code:
A
B
C
D
.
X
Y
Z
T
.
Code:
ABCD.
XY
ZT.
Thank you, Sergiy

Comment