return?

Ask for help

Moderators: Murderator+, Murderator

Post Reply
yokofan
Posts: 8
Joined: 2004-08-19 23:23:42

return?

Post by yokofan »

how 'return' works?

some thing else then ruturn 0 ?



thx since now.
Corwin
Posts: 25
Joined: 2005-05-22 08:35:28

Post by Corwin »

Code: Select all

SUB function_name(parameters)
   ...
   RETURN value
   ...
ENDSUB

- function definition. Function can contain any number of RETURN statements or not contain them at all. If function does not contain a RETURN statement or RETURN is specified without "value" - it is considered a procedure.
Никогда не бойся делать то, что ты не умеешь!
Помни, ковчег был построен любителем. Профессионалы построили "Титаник".
Post Reply