Print Statement
μ§μ ν λ¬Έμμ΄ λλ μμμ λν μμ λλ νμΌμ μΆλ ₯ν©λλ€.
Print [#filenum,] expression1[{;|,} [Spc(number As Integer);] [Tab(pos As Integer);] [expression2[...]]
filenum: Any numeric expression that contains the file number that was set by the Open statement for the respective file.
expression: Any numeric or string expression to be printed. Multiple expressions can be separated by a semicolon. If separated by a comma, the expressions are indented to the next tab stop. The tab stops cannot be adjusted.
number: Number of spaces to be inserted by the Spc function.
pos: Spaces are inserted until the specified position.
μΈμν λ§μ§λ§ μ λ€μ μΈλ―Έμ½λ‘ μ΄λ μΌνκ° μμ κ²½μ° LibreOffice Basicμ ν μ€νΈλ₯Ό λ΄λΆ λ²νΌμ μ μ₯νκ³ μΈμ μμ΄ νλ‘κ·Έλ¨ μ€νμ κ³μν©λλ€. κ·Έλ¬λ€κ° μΈλ―Έμ½λ‘ μ΄λ μΌνκ° λμ μλ λ€λ₯Έ Print λ¬Έμ λ§λλ©΄ μΈμν λͺ¨λ ν μ€νΈκ° ν λ²μ μΈμλ©λλ€.
μμ μμ μ ν 곡백과 ν¨κ» μΈμλκ³ μμ μμ μ ν λΉΌκΈ° κΈ°νΈμ ν¨κ» μΈμλ©λλ€. λΆλ μμμ κ°μ λν νΉμ λ²μλ₯Ό μ΄κ³Όν κ²½μ° ν΄λΉ μ«μ μμ μ§μ νκΈ°λ²μΌλ‘ μΈμλ©λλ€.
μΈμν μμ΄ νΉμ κΈΈμ΄λ₯Ό μ΄κ³Όν κ²½μ° μλμΌλ‘ μ€ λ°κΏλμ΄ λ€μ μ€μ΄ νμλ©λλ€.
You can insert the Tab function, enclosed by semicolons, between arguments to indent the output to a specific position, or you can use the Spc function to insert a specified number of spaces.
Sub ExamplePrint
Print "ABC"
Print "ABC","123"
i = FreeFile()
Open "C:\Temp.txt" For Output As i
Print #i, "ABC"
Close #i
End Sub
Sub ExamplePrint
Print "ABC"
Print "ABC","123"
i = FreeFile()
Open "~/temp.txt" For Output As i
Print #i, "ABC"
Close #i
End Sub