Print# Statement

Outputs the specified strings or numeric expressions to the screen or to a sequential file.


Use Put# statement to write data to a binary or a random file. Use Write# statement to write data to a sequential text file with delimiting characters.


Print syntax

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.


Please support us!