Print Statement
Prikazuje specificirani string ili broj u dijalogu ili datoteci
Sintaksa:
Print [#FileName,] Expression_1[{;|,} [Spc(Number As Integer);] [Tab(pos As Integer);] [Expression_n[...]]
Parametar:
FajlBroj: Numericki izraz koji sadrzi broj fajla koji je poslat od otvorene izjave za odgovarajuci fajl.
Expression: A 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.
Broj: Number of spaces to be inserted by the Spc function.
Pos: Spaces are inserted until the specified position.
ako je zarez ili tackazarez poslije zadnjeg izraza printovana, LibreOffice osnovna ubacuje tekst u interni bafer i nastavlja program bez štampanja kad je neka druga print recenica bez tacke zareza ili zareza na kraju pojavi, citav tekst je printan odjednom.
pozitivni su štampani . negativni su štampani bez minusa. ako je rang predjen onda se brojevi printaj eksponencijalno.
kad predje velicinu displej prelazi u novi red
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.
Primjer:
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