Return

Prev Next Home Home Table Of Contents Index

Return (param,param,...)

Exits a procedure and optionally returns parameters to the calling procedure. It can return as many parameters as you want as long as the calling program uses the same number of parameters. Otherwise, you will get an "Invalid number of parameters" error.


Example:
Procedure SmallRandomNumber ;Returns a random number between 1 and 100 var SmallRand SmallRand = Random mod 100 Return (SmallRand + 1) EndProc

See Also: Procedure EndProc

Category: Misc

Prev Next Home Home Table Of Contents Index

Sponsors
Shopping
Forum
Forum
email
EMail
Index
Index
Home
Home