Mioplanet Documentation Center
Resources and Help
HomeProductsMioScriptJavaScriptTechNotesPHP
   Home | MioScript | return SEARCH    

  Functions
?
doEvent.eventName
event.end
event.eventName
for
for.exit
for.next
function.end
function.functionName
if
if.else
if.end
return
while
while.end
while.exit

  MioScript Reference
> Statements
app...
browser...
dialog...
disk...
draw...
extern...
filename...
keyboard...
menu...
mio...
mouse...
num...
path...
pushButton...
reg...
RS232...
sci...
screen...
shortcut...
sound...
str...
system...
time...
var...
window...

Statement
return

Language: MioScript
Product: MioFactory


Syntax

return(returnValue)


Parameters

ANYreturnValueOptional.
Value to be returned.


Return value

No value is returned.


Description

When this statement is reached, the execution returns to the point it was when the function was called and a value, if specified, is returned.

More information: MioScript: Functions

See also: function.functionName, function.end




MioScript Sample Code

event.load
    &var = myFunction(2006, 10, 3)
    alert(&var)
    app.close()
event.end

function.myFunction(&year, &month, &day)
    ...
    return("Thank You")
function.end