7 lines
1.3 KiB
HTML
7 lines
1.3 KiB
HTML
<html><head><title>Command: Print </title><meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'><link rel='stylesheet' href='../css/commands.css' type='text/css'></head><body><span class='Command'> Print string$ </span></p><span class='header'>Definition:</span> <br><br><table width='100%' border='0' cellspacing='2' cellpadding='2' align='center'><tr><td>Print a string to the screen.</td></tr></table><span class='header'><br>Parameter Description:</span> <br><br><table width='100%' border='0' cellspacing='2' cellpadding='2' align='center'><tr><td>string$ = any valid string</td></tr></table><p class='header'>Command Description: <br><br><table width='100%' border='0' cellspacing='2' cellpadding='2' align='center'><tr><td>This command will print a string value on the screen (if not in a graphic mode) or on the current drawing buffer being used by the program. Unlike the <a href='Write.htm'>Write</a> command, it puts a carriage return/linefeed after the string.</td></tr></table><p class='header'>Example: <br><br><table width='100%' border='0' cellspacing='2' cellpadding='2' align='center'><tr><td>; Get the user's name and print a welcome<br>
|
|
<br>
|
|
name$=Input$("What is your name?")<br>
|
|
Print "Hello there, " + name$ + "!"<br>
|
|
<br></td></tr></table><p><b><a target="_top" href="../index.htm">Index</a></b></p></body>
|
|
</html>
|