Applied docspak188.
This commit is contained in:
@@ -1,16 +1,50 @@
|
||||
<html><head><title>Command: End Function </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'> End Function </span></p><span class='header'>Definition:</span> <br><br><table width='100%' border='0' cellspacing='2' cellpadding='2' align='center'><tr><td>Denotes the end of a Function structure.</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>None.</td></tr></table><p class='header'>Command Description: <br><br><table width='100%' border='0' cellspacing='2' cellpadding='2' align='center'><tr><td>This line terminates a <a href='FUNCTION.htm'>FUNCTION</a> structure. Upon reaching this line, Blitz will branch program execution to the next command following the original call to the function. See the <a href='FUNCTION.htm'>FUNCTION</a> command for more information.</td></tr></table><p class='header'>Example: <br><br><table width='100%' border='0' cellspacing='2' cellpadding='2' align='center'><tr><td>; End Function Example<br>
|
||||
<html>
|
||||
<head>
|
||||
<title>Blitz3D Docs</title>
|
||||
<link rel=stylesheet href=../css/commands.css type=text/css>
|
||||
</head>
|
||||
<body>
|
||||
<h1>End Function</h1>
|
||||
<h1>Parameters</h1>
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
None.
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<h1>Description</h1>
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
This line terminates a FUNCTION structure. Upon reaching this line, Blitz will branch program execution to the next command following the original call to the function. See the FUNCTION command for more information.
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<h1><a href=../2d_examples/End Function.bb>Example</a></h1>
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
; End Function Example
|
||||
<br />
|
||||
|
||||
<br />
|
||||
; Get the user's name
|
||||
<br />
|
||||
name$=Input$("Enter Your Name:")
|
||||
<br />
|
||||
|
||||
<br />
|
||||
; Call a function to print how many letters the name has
|
||||
<br />
|
||||
numletters(name$);
|
||||
<br />
|
||||
|
||||
<br />
|
||||
;The program basically ends here, because functions don't run unless called.
|
||||
<br />
|
||||
|
||||
; Get the user's name<br>
|
||||
name$=Input$("Enter Your Name:")<br>
|
||||
<br />
|
||||
; The actual function
|
||||
; Call a function to print how many letters the name has<br>
|
||||
numletters(name$);<br>
|
||||
<br>
|
||||
;The program basically ends here, because functions don't run unless called.<br>
|
||||
<br>
|
||||
; The actual function<br>
|
||||
Function numletters(passedname$)<br>
|
||||
Print "Your name has " + Len(passedname$) + " letters in it."<br>
|
||||
End Function<br>
|
||||
<br></td></tr></table><p><b><a target="_top" href="../index.htm">Index</a></b></p></body>
|
||||
<br />
|
||||
Function numletters(passedname$)
|
||||
|
||||
Reference in New Issue
Block a user