Print/
Print_1.bas
' |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@|
' | Print Example 1 |
' | by |
' | GDN Black Ops : FreeBASIC Division |
' |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@|
' http://gamedesign.wikidot.com/freebasic:print
' 'Print' displays information to the window. The information can be a number
' or string (text).
Print "I'm a string."
Print 32
Print 32.44
Sleep
End
Print_2.bas
' |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@|
' | Print Example 2 |
' | by |
' | GDN Black Ops : FreeBASIC Division |
' |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@|
' http://gamedesign.wikidot.com/freebasic:print
' Two bits of information can be pasted together using a semicolon ( ; )
Print "You have" ; 30 ; " gold pieces"
Sleep
End
Print_vs_Write.bas
' |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@|
' | Print vs. Write |
' | by |
' | GDN Black Ops : FreeBASIC Division |
' |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@|
' http://gamedesign.wikidot.com/freebasic:print
' There are a couple of differences between 'Print' and 'Write'. Both display
' information. However, they display information a bit differently.
' 'Print' does not display quotes that enclose a string.
' 'Write' does.
Print "Print: No quotes."
Write "Write: See, quotes."
' 'Print' displays a blank space in front of non-negative numbers.
' 'Write' does not.
Print 42
Write 42
Sleep
End
page revision: 6, last edited: 10 May 2007 16:03