Print Statement

μ§€μ •ν•œ λ¬Έμžμ—΄ λ˜λŠ” μˆ˜μ‹μ„ λŒ€ν™” μƒμž λ˜λŠ” νŒŒμΌμ— 좜λ ₯ν•©λ‹ˆλ‹€.

Syntax:

Print syntax


Print [#filenum,] expression1[{;|,} [Spc(number As Integer);] [Tab(pos As Integer);] [expression2[...]]

Parameters:

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.


Example: