Navigation:  thinBasic language > Script structure > Functions/Subs >

RETURN

Previous pageReturn to chapter overviewNext page

 

Description

 

Exits immediately from the currently executing function to the calling routine, optionally returning a value

 

Syntax

 

Return [ expression ]

 

Returns

 

None

 

Parameters

 

Name

Type

Optional

Meaning





 

Remarks

 

Return is equivalent to the following code:

 

Function = [ReturnValueIfPresent]

Exit Function

 

Restrictions

 

See also

 

Examples

 

 

 

© 2004-2008 thinBasic. All rights reserved. Version 1.7.0.0 Web Site: http://www.thinbasic.com